on master help sign in
Merge pull request #67 from MichalObi/fix/examples-clean-up
bf7cec5Nick Fitzgerald
examples/sierpinski-triangle/README.mdmode 100644 → 100755+1−1
@@ -20,5 +20,5 @@ wasm-pack build --target web
20Use any HTTP server, for example:
20Use any HTTP server, for example:
21
21
22```
22```
23−python -m http.server
23+python -m SimpleHTTPServer
24```
24```
examples/todomvc/src/router.rsmode 100644 → 100755+1−2
@@ -6,8 +6,7 @@ use crate::visibility::Visibility;
6use dodrio::VdomWeak;
6use dodrio::VdomWeak;
7use futures::prelude::*;
7use futures::prelude::*;
8use std::str::FromStr;
8use std::str::FromStr;
9−use wasm_bindgen::prelude::*;
9+use wasm_bindgen::{prelude::*, JsCast};
10−use wasm_bindgen::JsCast;
11
10
12/// Start the router.
11/// Start the router.
13pub fn start(vdom: VdomWeak) {
12pub fn start(vdom: VdomWeak) {
examples/todomvc/src/todos.rsmode 100644 → 100755+2−3
@@ -9,8 +9,7 @@ use dodrio::{bumpalo, Node, Render, RenderContext, RootRender, VdomWeak};
9use serde::{Deserialize, Serialize};
9use serde::{Deserialize, Serialize};
10use std::marker::PhantomData;
10use std::marker::PhantomData;
11use std::mem;
11use std::mem;
12−use wasm_bindgen::prelude::*;
12+use wasm_bindgen::{prelude::*, JsCast};
13−use wasm_bindgen::JsCast;
14
13
15/// A collection of todos.
14/// A collection of todos.
16#[derive(Default, Serialize, Deserialize)]
15#[derive(Default, Serialize, Deserialize)]
@@ -50,7 +49,7 @@ pub trait TodosActions: TodoActions {
50impl<C> Todos<C> {
49impl<C> Todos<C> {
51 /// Construct a new todos set.
50 /// Construct a new todos set.
52 ///
51 ///
53− /// If an existing set is available in local storage, then us that,
52+ /// If an existing set is available in local storage, then use that,
54 /// otherwise create a new set.
53 /// otherwise create a new set.
55 pub fn new() -> Self
54 pub fn new() -> Self
56 where
55 where