Skip to content

Commit 96e0280

Browse files
committed
fix conflicting impls
Into<Html> and Display can't be implemented on the same type
1 parent 56f83cc commit 96e0280

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

examples/todomvc/src/state.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use serde_derive::{Deserialize, Serialize};
22
use strum_macros::{Display, EnumIter};
3-
use yew::prelude::*;
43

54
#[derive(Debug, Serialize, Deserialize)]
65
pub struct State {
@@ -141,9 +140,3 @@ impl Filter {
141140
}
142141
}
143142
}
144-
145-
impl Into<Html> for Filter {
146-
fn into(self) -> yew::Html {
147-
html! { <>{self.to_string()}</> }
148-
}
149-
}

0 commit comments

Comments
 (0)