Browse Source

Ran rustfmt over all code

Signed-off-by: Daniel Egger <daniel@eggers-club.de>
trying.tmp
Daniel Egger 2 years ago
parent
commit
f2986badc1
  1. 2
      examples/adc_values.rs
  2. 2
      examples/blinky.rs
  3. 2
      examples/blinky_adc.rs
  4. 2
      examples/blinky_delay.rs
  5. 2
      examples/blinky_multiple.rs
  6. 2
      examples/blinky_timer.rs
  7. 2
      examples/flash_systick.rs
  8. 2
      examples/flash_systick_fancier.rs
  9. 2
      examples/i2c_find_address.rs
  10. 2
      examples/serial_echo.rs
  11. 2
      examples/spi_hal_apa102c.rs
  12. 2
      examples/usb_serial.rs
  13. 4
      examples/watchdog.rs
  14. 2
      src/serial.rs

2
examples/adc_values.rs

@ -5,7 +5,7 @@ use panic_halt as _;
use stm32f0xx_hal as hal;
use crate::hal::{prelude::*, pac};
use crate::hal::{pac, prelude::*};
use cortex_m::{interrupt::Mutex, peripheral::syst::SystClkSource::Core};
use cortex_m_rt::{entry, exception};

2
examples/blinky.rs

@ -5,7 +5,7 @@ use panic_halt as _;
use stm32f0xx_hal as hal;
use crate::hal::{prelude::*, pac};
use crate::hal::{pac, prelude::*};
use cortex_m_rt::entry;

2
examples/blinky_adc.rs

@ -5,7 +5,7 @@ use panic_halt as _;
use stm32f0xx_hal as hal;
use crate::hal::{adc::Adc, delay::Delay, prelude::*, pac};
use crate::hal::{adc::Adc, delay::Delay, pac, prelude::*};
use cortex_m::peripheral::Peripherals;
use cortex_m_rt::entry;

2
examples/blinky_delay.rs

@ -5,7 +5,7 @@ use panic_halt as _;
use stm32f0xx_hal as hal;
use crate::hal::{delay::Delay, prelude::*, pac};
use crate::hal::{delay::Delay, pac, prelude::*};
use cortex_m::peripheral::Peripherals;
use cortex_m_rt::entry;

2
examples/blinky_multiple.rs

@ -5,7 +5,7 @@ use panic_halt as _;
use stm32f0xx_hal as hal;
use crate::hal::{delay::Delay, prelude::*, pac};
use crate::hal::{delay::Delay, pac, prelude::*};
use cortex_m::peripheral::Peripherals;
use cortex_m_rt::entry;

2
examples/blinky_timer.rs

@ -5,7 +5,7 @@ use panic_halt as _;
use stm32f0xx_hal as hal;
use crate::hal::{prelude::*, pac, time::Hertz, timers::*};
use crate::hal::{pac, prelude::*, time::Hertz, timers::*};
use cortex_m_rt::entry;

2
examples/flash_systick.rs

@ -5,7 +5,7 @@ use panic_halt as _;
use stm32f0xx_hal as hal;
use crate::hal::{gpio::*, prelude::*, pac};
use crate::hal::{gpio::*, pac, prelude::*};
use cortex_m::{interrupt::Mutex, peripheral::syst::SystClkSource::Core, Peripherals};
use cortex_m_rt::{entry, exception};

2
examples/flash_systick_fancier.rs

@ -5,7 +5,7 @@ use panic_halt as _;
use stm32f0xx_hal as hal;
use crate::hal::{gpio::*, prelude::*, pac};
use crate::hal::{gpio::*, pac, prelude::*};
use cortex_m::{interrupt::Mutex, peripheral::syst::SystClkSource::Core, Peripherals};
use cortex_m_rt::{entry, exception};

2
examples/i2c_find_address.rs

@ -5,7 +5,7 @@ use panic_halt as _;
use stm32f0xx_hal as hal;
use crate::hal::{i2c::I2c, prelude::*, pac};
use crate::hal::{i2c::I2c, pac, prelude::*};
use cortex_m_rt::entry;

2
examples/serial_echo.rs

@ -5,7 +5,7 @@ use panic_halt as _;
use stm32f0xx_hal as hal;
use crate::hal::{prelude::*, serial::Serial, pac};
use crate::hal::{pac, prelude::*, serial::Serial};
use cortex_m_rt::entry;

2
examples/spi_hal_apa102c.rs

@ -6,10 +6,10 @@ use panic_halt as _;
use stm32f0xx_hal as hal;
use crate::hal::{
pac,
prelude::*,
spi::Spi,
spi::{Mode, Phase, Polarity},
pac,
};
use cortex_m_rt::entry;

2
examples/usb_serial.rs

@ -7,7 +7,7 @@ extern crate panic_halt;
use cortex_m_rt::entry;
use stm32f0xx_hal::usb::{Peripheral, UsbBus};
use stm32f0xx_hal::{prelude::*, pac};
use stm32f0xx_hal::{pac, prelude::*};
use usb_device::prelude::*;
use usbd_serial::{SerialPort, USB_CLASS_CDC};

4
examples/watchdog.rs

@ -5,9 +5,7 @@ use panic_halt as _;
use stm32f0xx_hal as hal;
use crate::hal::{
delay::Delay, prelude::*, serial::Serial, pac, time::Hertz, watchdog::Watchdog,
};
use crate::hal::{delay::Delay, pac, prelude::*, serial::Serial, time::Hertz, watchdog::Watchdog};
use cortex_m::peripheral::Peripherals;
use cortex_m_rt::entry;

2
src/serial.rs

@ -59,9 +59,9 @@
//! ```
use core::{
convert::Infallible,
fmt::{Result, Write},
ops::Deref,
convert::Infallible,
};
use embedded_hal::prelude::*;

Loading…
Cancel
Save