on master help sign in
One line wasm_bindgen import in examples
e609f10Michal
examples/moire/src/lib.rs+1−2
@@ -5,8 +5,7 @@ use dodrio::{bumpalo, Node, Render, RenderContext, Vdom};
5use std::cell::RefCell;
5use std::cell::RefCell;
6use std::rc::Rc;
6use std::rc::Rc;
7use std::str;
7use std::str;
8−use wasm_bindgen::prelude::*;
8+use wasm_bindgen::{prelude::*, JsCast};
9−use wasm_bindgen::JsCast;
10
9
11/// This is the main function that is automatically invoked when the wasm module
10/// This is the main function that is automatically invoked when the wasm module
12/// is loaded.
11/// is loaded.
examples/sierpinski-triangle/src/lib.rs+1−2
@@ -1,8 +1,7 @@
1use dodrio::{bumpalo, Node, Render, RenderContext, Vdom};
1use dodrio::{bumpalo, Node, Render, RenderContext, Vdom};
2use std::cell::RefCell;
2use std::cell::RefCell;
3use std::rc::Rc;
3use std::rc::Rc;
4−use wasm_bindgen::prelude::*;
4+use wasm_bindgen::{prelude::*, JsCast};
5−use wasm_bindgen::JsCast;
6use web_sys::Window;
5use web_sys::Window;
7
6
8// Triangle container defining target size.
7// Triangle container defining target size.