diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-06-12 22:15:44 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-06-12 22:22:31 +0200 |
| commit | a8703b75988e1e700af701116464025679d2feb8 (patch) | |
| tree | f4ec5de70ec05e793a774049e010935ac45853ed /docs/modules/ROOT/examples/layer-by-layer/blinky-async | |
| parent | 6199bdea710cde33e5d5381b6d6abfc8af46df19 (diff) | |
Run rustfmt.
Diffstat (limited to 'docs/modules/ROOT/examples/layer-by-layer/blinky-async')
| -rw-r--r-- | docs/modules/ROOT/examples/layer-by-layer/blinky-async/src/main.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/docs/modules/ROOT/examples/layer-by-layer/blinky-async/src/main.rs b/docs/modules/ROOT/examples/layer-by-layer/blinky-async/src/main.rs index 35726be64..56bc698da 100644 --- a/docs/modules/ROOT/examples/layer-by-layer/blinky-async/src/main.rs +++ b/docs/modules/ROOT/examples/layer-by-layer/blinky-async/src/main.rs | |||
| @@ -2,15 +2,11 @@ | |||
| 2 | #![no_main] | 2 | #![no_main] |
| 3 | #![feature(type_alias_impl_trait)] | 3 | #![feature(type_alias_impl_trait)] |
| 4 | 4 | ||
| 5 | use defmt_rtt as _; | ||
| 6 | use panic_probe as _; | ||
| 7 | |||
| 8 | use embassy::executor::Spawner; | 5 | use embassy::executor::Spawner; |
| 9 | use embassy_stm32::{ | 6 | use embassy_stm32::exti::ExtiInput; |
| 10 | exti::ExtiInput, | 7 | use embassy_stm32::gpio::{Input, Level, Output, Pull, Speed}; |
| 11 | gpio::{Input, Level, Output, Pull, Speed}, | 8 | use embassy_stm32::Peripherals; |
| 12 | Peripherals, | 9 | use {defmt_rtt as _, panic_probe as _}; |
| 13 | }; | ||
| 14 | 10 | ||
| 15 | #[embassy::main] | 11 | #[embassy::main] |
| 16 | async fn main(_s: Spawner, p: Peripherals) { | 12 | async fn main(_s: Spawner, p: Peripherals) { |
