From 0a5bfdabd8ea6f3460bb4b753c727a7b433dbdbc Mon Sep 17 00:00:00 2001 From: Jan Baudisch Date: Tue, 28 Jan 2020 17:29:36 +0000 Subject: [PATCH] update formatting --- .rustfmt.toml | 1 - heron_web/src/main.rs | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 .rustfmt.toml diff --git a/.rustfmt.toml b/.rustfmt.toml deleted file mode 100644 index b9d10ae..0000000 --- a/.rustfmt.toml +++ /dev/null @@ -1 +0,0 @@ -trailing_comma = "Never" diff --git a/heron_web/src/main.rs b/heron_web/src/main.rs index 2d38916..8949999 100644 --- a/heron_web/src/main.rs +++ b/heron_web/src/main.rs @@ -10,17 +10,17 @@ fn main() { pub struct Model { square: String, precision: String, - root: f32 + root: f32, } pub enum Message { Calculcate, - Input(Input, String) + Input(Input, String), } pub enum Input { Square, - Precision + Precision, } impl Component for Model { @@ -31,7 +31,7 @@ impl Component for Model { Model { square: String::new(), precision: String::new(), - root: 0.0 + root: 0.0, } } @@ -44,8 +44,8 @@ impl Component for Model { } Message::Input(input_type, input) => match input_type { Input::Square => self.square = input, - Input::Precision => self.precision = input - } + Input::Precision => self.precision = input, + }, } true } -- 2.45.2