From c28cb3941fde35f9931b995aa5a9a54c8bfe7a7c Mon Sep 17 00:00:00 2001 From: "Jeong, YunWon" <69878+youknowone@users.noreply.github.com> Date: Wed, 19 Jul 2023 23:43:26 +0900 Subject: [PATCH] prettier *.js + fix miri build (#5028) * prettier *.js * bump up proc-macro2 --- Cargo.lock | 4 ++-- derive-impl/Cargo.toml | 2 +- wasm/README.md | 2 +- wasm/demo/webpack.config.js | 8 ++++---- wasm/example/index.html | 2 +- wasm/notebook/src/index.js | 12 ++++++------ wasm/notebook/webpack.config.js | 4 ++-- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f1b8b1810..f71ff7c8d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1714,9 +1714,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.51" +version = "1.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d727cae5b39d21da60fa540906919ad737832fe0b1c165da3a34d6548c849d6" +checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9" dependencies = [ "unicode-ident", ] diff --git a/derive-impl/Cargo.toml b/derive-impl/Cargo.toml index e50d92d86..1c6b214cc 100644 --- a/derive-impl/Cargo.toml +++ b/derive-impl/Cargo.toml @@ -13,7 +13,7 @@ once_cell = { workspace = true } syn = { workspace = true, features = ["full", "extra-traits"] } maplit = "1.0.2" -proc-macro2 = "1.0.37" +proc-macro2 = "1.0.60" quote = "1.0.18" syn-ext = { version = "0.4.0", features = ["full"] } textwrap = { version = "0.15.0", default-features = false } diff --git a/wasm/README.md b/wasm/README.md index de71e6604..e8f8799f3 100644 --- a/wasm/README.md +++ b/wasm/README.md @@ -51,7 +51,7 @@ print(js_vars['a'] * 9) vars: { a: 9, }, - } + }, ); ``` diff --git a/wasm/demo/webpack.config.js b/wasm/demo/webpack.config.js index c431056a7..e20b47724 100644 --- a/wasm/demo/webpack.config.js +++ b/wasm/demo/webpack.config.js @@ -18,7 +18,7 @@ module.exports = (env = {}) => { alias: { rustpython: path.resolve( __dirname, - env.rustpythonPkg || '../lib/pkg' + env.rustpythonPkg || '../lib/pkg', ), }, }, @@ -39,11 +39,11 @@ module.exports = (env = {}) => { snippets: fs .readdirSync(path.join(__dirname, 'snippets')) .map((filename) => - path.basename(filename, path.extname(filename)) + path.basename(filename, path.extname(filename)), ), defaultSnippetName: 'fibonacci', defaultSnippet: fs.readFileSync( - path.join(__dirname, 'snippets/fibonacci.py') + path.join(__dirname, 'snippets/fibonacci.py'), ), }, }), @@ -56,7 +56,7 @@ module.exports = (env = {}) => { config.plugins.push( new WasmPackPlugin({ crateDirectory: path.join(__dirname, '../lib'), - }) + }), ); } return config; diff --git a/wasm/example/index.html b/wasm/example/index.html index 86a99c42f..4c274469f 100644 --- a/wasm/example/index.html +++ b/wasm/example/index.html @@ -1,4 +1,4 @@ - +
diff --git a/wasm/notebook/src/index.js b/wasm/notebook/src/index.js index 799c49ae7..422bc4d0d 100644 --- a/wasm/notebook/src/index.js +++ b/wasm/notebook/src/index.js @@ -68,7 +68,7 @@ const secondaryEditor = CodeMirror( { lineNumbers: true, lineWrapping: true, - } + }, ); const buffers = {}; @@ -88,7 +88,7 @@ openBuffer( '# python code or code blocks that start with %%py, %%md %%math.', 'notebook', buffersDropDown, - buffersList + buffersList, ); openBuffer( @@ -97,7 +97,7 @@ openBuffer( '# Python code', 'python', buffersDropDown, - buffersList + buffersList, ); openBuffer( @@ -106,7 +106,7 @@ openBuffer( '// Javascript code goes here', 'javascript', buffersDropDown, - buffersList + buffersList, ); openBuffer( @@ -115,7 +115,7 @@ openBuffer( '/* CSS goes here */', 'css', buffersDropDown, - buffersList + buffersList, ); // select main buffer by default and set the main tab to active @@ -286,7 +286,7 @@ CodeMirror.on(buffersDropDown, 'change', function () { selectBuffer( secondaryEditor, buffers, - buffersDropDown.options[buffersDropDown.selectedIndex].value + buffersDropDown.options[buffersDropDown.selectedIndex].value, ); }); diff --git a/wasm/notebook/webpack.config.js b/wasm/notebook/webpack.config.js index e6e1aae0d..9fda3cf4a 100644 --- a/wasm/notebook/webpack.config.js +++ b/wasm/notebook/webpack.config.js @@ -18,7 +18,7 @@ module.exports = (env = {}) => { alias: { rustpython: path.resolve( __dirname, - env.rustpythonPkg || '../lib/pkg' + env.rustpythonPkg || '../lib/pkg', ), }, }, @@ -64,7 +64,7 @@ module.exports = (env = {}) => { new WasmPackPlugin({ crateDirectory: path.join(__dirname, '../lib'), forceMode: 'release', - }) + }), ); } return config;