From a7fb11119f7513d4d4608e050191c3632d089f27 Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Sat, 13 Nov 2021 04:20:38 +0100 Subject: [PATCH] Cargo format --- src/main.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6a6354e..53c5eec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,22 +2,17 @@ enum Msg { AddOne, } - struct Model { link: yew::ComponentLink, value: i64, } - impl yew::Component for Model { type Message = Msg; type Properties = (); fn create(_props: Self::Properties, link: yew::ComponentLink) -> 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::(); }