@@ -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;
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.
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