Skip to content

Commit c28cb39

Browse files
authored
prettier *.js + fix miri build (RustPython#5028)
* prettier *.js * bump up proc-macro2
1 parent d66f4d5 commit c28cb39

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

derive-impl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ once_cell = { workspace = true }
1313
syn = { workspace = true, features = ["full", "extra-traits"] }
1414

1515
maplit = "1.0.2"
16-
proc-macro2 = "1.0.37"
16+
proc-macro2 = "1.0.60"
1717
quote = "1.0.18"
1818
syn-ext = { version = "0.4.0", features = ["full"] }
1919
textwrap = { version = "0.15.0", default-features = false }

wasm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ print(js_vars['a'] * 9)
5151
vars: {
5252
a: 9,
5353
},
54-
}
54+
},
5555
);
5656
```
5757

wasm/demo/webpack.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = (env = {}) => {
1818
alias: {
1919
rustpython: path.resolve(
2020
__dirname,
21-
env.rustpythonPkg || '../lib/pkg'
21+
env.rustpythonPkg || '../lib/pkg',
2222
),
2323
},
2424
},
@@ -39,11 +39,11 @@ module.exports = (env = {}) => {
3939
snippets: fs
4040
.readdirSync(path.join(__dirname, 'snippets'))
4141
.map((filename) =>
42-
path.basename(filename, path.extname(filename))
42+
path.basename(filename, path.extname(filename)),
4343
),
4444
defaultSnippetName: 'fibonacci',
4545
defaultSnippet: fs.readFileSync(
46-
path.join(__dirname, 'snippets/fibonacci.py')
46+
path.join(__dirname, 'snippets/fibonacci.py'),
4747
),
4848
},
4949
}),
@@ -56,7 +56,7 @@ module.exports = (env = {}) => {
5656
config.plugins.push(
5757
new WasmPackPlugin({
5858
crateDirectory: path.join(__dirname, '../lib'),
59-
})
59+
}),
6060
);
6161
}
6262
return config;

wasm/example/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />

wasm/notebook/src/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const secondaryEditor = CodeMirror(
6868
{
6969
lineNumbers: true,
7070
lineWrapping: true,
71-
}
71+
},
7272
);
7373

7474
const buffers = {};
@@ -88,7 +88,7 @@ openBuffer(
8888
'# python code or code blocks that start with %%py, %%md %%math.',
8989
'notebook',
9090
buffersDropDown,
91-
buffersList
91+
buffersList,
9292
);
9393

9494
openBuffer(
@@ -97,7 +97,7 @@ openBuffer(
9797
'# Python code',
9898
'python',
9999
buffersDropDown,
100-
buffersList
100+
buffersList,
101101
);
102102

103103
openBuffer(
@@ -106,7 +106,7 @@ openBuffer(
106106
'// Javascript code goes here',
107107
'javascript',
108108
buffersDropDown,
109-
buffersList
109+
buffersList,
110110
);
111111

112112
openBuffer(
@@ -115,7 +115,7 @@ openBuffer(
115115
'/* CSS goes here */',
116116
'css',
117117
buffersDropDown,
118-
buffersList
118+
buffersList,
119119
);
120120

121121
// select main buffer by default and set the main tab to active
@@ -286,7 +286,7 @@ CodeMirror.on(buffersDropDown, 'change', function () {
286286
selectBuffer(
287287
secondaryEditor,
288288
buffers,
289-
buffersDropDown.options[buffersDropDown.selectedIndex].value
289+
buffersDropDown.options[buffersDropDown.selectedIndex].value,
290290
);
291291
});
292292

wasm/notebook/webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = (env = {}) => {
1818
alias: {
1919
rustpython: path.resolve(
2020
__dirname,
21-
env.rustpythonPkg || '../lib/pkg'
21+
env.rustpythonPkg || '../lib/pkg',
2222
),
2323
},
2424
},
@@ -64,7 +64,7 @@ module.exports = (env = {}) => {
6464
new WasmPackPlugin({
6565
crateDirectory: path.join(__dirname, '../lib'),
6666
forceMode: 'release',
67-
})
67+
}),
6868
);
6969
}
7070
return config;

0 commit comments

Comments
 (0)