Cargo format

This commit is contained in:
Sijmen 2021-11-13 04:20:38 +01:00
parent 479d9cd4fd
commit a7fb11119f
Signed by: vijfhoek
GPG Key ID: DAF7821E067D9C48
1 changed files with 1 additions and 7 deletions

View File

@ -2,22 +2,17 @@ enum Msg {
AddOne,
}
struct Model {
link: yew::ComponentLink<Self>,
value: i64,
}
impl yew::Component for Model {
type Message = Msg;
type Properties = ();
fn create(_props: Self::Properties, link: yew::ComponentLink<Self>) -> Self {
Self {
link,
value: 0,
}
Self { link, value: 0 }
}
fn update(&mut self, msg: Self::Message) -> yew::ShouldRender {
@ -91,7 +86,6 @@ impl yew::Component for Model {
}
}
fn main() {
yew::start_app::<Model>();
}