Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit27b5796

Browse files
committed
formatting fixes
1 parent958ee94 commit27b5796

File tree

6 files changed

+8
-22
lines changed

6 files changed

+8
-22
lines changed

‎wasm/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ wasm-bindgen = "0.2"
1717

1818

1919
[profile.release]
20-
opt-level ="s"
20+
opt-level ="s"

‎wasm/app/bootstrap.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// asynchronously. This `bootstrap.js` file does the single async import, so
33
// that no one else needs to worry about it again.
44
import("./index.js")
5-
.catch(e=>console.error("Error importing `index.js`:",e));
5+
.catch(e=>console.error("Error importing `index.js`:",e));

‎wasm/app/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
<body>
88
<scriptsrc="./bootstrap.js"></script>
99
</body>
10-
</html>
10+
</html>

‎wasm/app/webpack.config.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ module.exports = {
1111
plugins:[
1212
newCopyWebpackPlugin(['index.html'])
1313
],
14-
};
14+
};

‎wasm/index.html‎

Lines changed: 0 additions & 14 deletions
This file was deleted.

‎wasm/src/lib.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
externcrate rustpython_vm;
22
externcrate wasm_bindgen;
3-
use wasm_bindgen::prelude::*;
4-
use rustpython_vm::VirtualMachine;
53
use rustpython_vm::compile;
4+
use rustpython_vm::VirtualMachine;
5+
use wasm_bindgen::prelude::*;
66

77
#[wasm_bindgen]
88
extern"C"{
@@ -23,6 +23,6 @@ pub fn run_code(source: &str) -> () {
2323
let vars = vm.context().new_scope(Some(builtins));
2424
match vm.run_code_obj(code_obj.unwrap(), vars){
2525
Ok(_value) =>log("Execution successful"),
26-
Err(_) =>log("Execution failed")
26+
Err(_) =>log("Execution failed"),
2727
}
28-
}
28+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp