on master help sign in
One line wasm_bindgen import in examples
commite609f102f1c5225959f3a1f25c779d1c697fbf48 authorMichal <ndwz123@gmail.com> dateThu 25 Apr 2019, 10:29 (8 years ago) parent1aa4600
2 files changed+2−4
examples/moire/src/lib.rs+1−2 examples/sierpinski-triangle/src/lib.rs+1−2
examples/moire/src/lib.rs+1−2
@@ -5,8 +5,7 @@ use dodrio::{bumpalo, Node, Render, RenderContext, Vdom};
55use std::cell::RefCell;
66use std::rc::Rc;
77use std::str;
8−use wasm_bindgen::prelude::*;
9−use wasm_bindgen::JsCast;
8+use wasm_bindgen::{prelude::*, JsCast};
109
1110/// This is the main function that is automatically invoked when the wasm module
1211/// is loaded.
examples/sierpinski-triangle/src/lib.rs+1−2
@@ -1,8 +1,7 @@
11use dodrio::{bumpalo, Node, Render, RenderContext, Vdom};
22use std::cell::RefCell;
33use std::rc::Rc;
4−use wasm_bindgen::prelude::*;
5−use wasm_bindgen::JsCast;
4+use wasm_bindgen::{prelude::*, JsCast};
65use web_sys::Window;
76
87// Triangle container defining target size.