From 1316d1fe605d0b67571187dc23ea099dd9612d6c Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Thu, 27 Oct 2022 20:08:42 -0400 Subject: led: rustfmt --- src/led.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/led.rs b/src/led.rs index ed2524d..ba32fe0 100644 --- a/src/led.rs +++ b/src/led.rs @@ -1,6 +1,4 @@ -use stm32f1xx_hal::{ - gpio::{Cr, CRL, Floating, Input, Output, PushPull, gpiob::PB2}, -}; +use stm32f1xx_hal::gpio::{gpiob::PB2, Cr, Floating, Input, Output, PushPull, CRL}; enum State { Low, @@ -19,7 +17,10 @@ impl LED { pub fn new(pin: LEDPin>, cr: &mut Cr) -> Self { let mut p = pin.into_push_pull_output(cr); p.set_low(); - Self { pin: p, state: State::Low } + Self { + pin: p, + state: State::Low, + } } pub fn is_on(&self) -> bool { -- cgit v1.2.3