From fd4fcccd8fc196ec2271e0ce2be90c12ed920d4d Mon Sep 17 00:00:00 2001 From: Martin Suesskraut <22873554+msuesskraut@users.noreply.github.com> Date: Sat, 10 Apr 2021 12:47:55 +0200 Subject: [PATCH] cargo fmt --- examples/canvas/src/lib.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/examples/canvas/src/lib.rs b/examples/canvas/src/lib.rs index d21b0762..6e2e862a 100644 --- a/examples/canvas/src/lib.rs +++ b/examples/canvas/src/lib.rs @@ -3,7 +3,7 @@ //! [MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawWindow) use seed::{prelude::*, *}; -use web_sys::{HtmlCanvasElement, WheelEvent}; +use web_sys::HtmlCanvasElement; // ------ ------ // Init @@ -63,7 +63,7 @@ impl Default for Color { enum Zoom { In, - Out + Out, } enum Msg { @@ -137,11 +137,7 @@ fn view(model: &Model) -> impl IntoNodes { let delta_y = event.delta_y(); (delta_y != 0.0).then(|| { event.prevent_default(); - Msg::Zoom(if delta_y < 0.0 { - Zoom::In - } else { - Zoom::Out - }) + Msg::Zoom(if delta_y < 0.0 { Zoom::In } else { Zoom::Out }) }) }), ],