Cargo format
This commit is contained in:
parent
479d9cd4fd
commit
a7fb11119f
1 changed files with 1 additions and 7 deletions
|
@ -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>();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue