~janbaudisch/heron

0a5bfdabd8ea6f3460bb4b753c727a7b433dbdbc — Jan Baudisch 4 years ago 96e9559
update formatting
2 files changed, 6 insertions(+), 7 deletions(-)

D .rustfmt.toml
M heron_web/src/main.rs
D .rustfmt.toml => .rustfmt.toml +0 -1
@@ 1,1 0,0 @@
trailing_comma = "Never"

M heron_web/src/main.rs => heron_web/src/main.rs +6 -6
@@ 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
    }