diff --git a/wasm/Cargo.toml b/wasm/Cargo.toml index 11b60624f1..112d62a724 100644 --- a/wasm/Cargo.toml +++ b/wasm/Cargo.toml @@ -17,4 +17,4 @@ wasm-bindgen = "0.2" [profile.release] -opt-level = "s" \ No newline at end of file +opt-level = "s" diff --git a/wasm/app/bootstrap.js b/wasm/app/bootstrap.js index 726fd1b621..7934d627e8 100644 --- a/wasm/app/bootstrap.js +++ b/wasm/app/bootstrap.js @@ -2,4 +2,4 @@ // asynchronously. This `bootstrap.js` file does the single async import, so // that no one else needs to worry about it again. import("./index.js") - .catch(e => console.error("Error importing `index.js`:", e)); \ No newline at end of file + .catch(e => console.error("Error importing `index.js`:", e)); diff --git a/wasm/app/index.html b/wasm/app/index.html index 786497a22e..00f0d24078 100644 --- a/wasm/app/index.html +++ b/wasm/app/index.html @@ -7,4 +7,4 @@ - \ No newline at end of file + diff --git a/wasm/app/webpack.config.js b/wasm/app/webpack.config.js index 531def733d..80ad8142d2 100644 --- a/wasm/app/webpack.config.js +++ b/wasm/app/webpack.config.js @@ -11,4 +11,4 @@ module.exports = { plugins: [ new CopyWebpackPlugin(['index.html']) ], -}; \ No newline at end of file +}; diff --git a/wasm/index.html b/wasm/index.html deleted file mode 100644 index 13313d61ba..0000000000 --- a/wasm/index.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - RustPython/Wasm - - - - - \ No newline at end of file diff --git a/wasm/src/lib.rs b/wasm/src/lib.rs index d7916baef4..6c5d39209e 100644 --- a/wasm/src/lib.rs +++ b/wasm/src/lib.rs @@ -1,8 +1,8 @@ extern crate rustpython_vm; extern crate wasm_bindgen; -use wasm_bindgen::prelude::*; -use rustpython_vm::VirtualMachine; use rustpython_vm::compile; +use rustpython_vm::VirtualMachine; +use wasm_bindgen::prelude::*; #[wasm_bindgen] extern "C" { @@ -23,6 +23,6 @@ pub fn run_code(source: &str) -> () { let vars = vm.context().new_scope(Some(builtins)); match vm.run_code_obj(code_obj.unwrap(), vars) { Ok(_value) => log("Execution successful"), - Err(_) => log("Execution failed") + Err(_) => log("Execution failed"), } -} \ No newline at end of file +}