aboutsummaryrefslogtreecommitdiff
path: root/docs/modules/ROOT/examples/layer-by-layer/blinky-async/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-06-13 07:22:04 +0000
committerGitHub <[email protected]>2022-06-13 07:22:04 +0000
commitdb685c04049449ac3e4f256f2e7e26dad550d94c (patch)
treef4ec5de70ec05e793a774049e010935ac45853ed /docs/modules/ROOT/examples/layer-by-layer/blinky-async/src
parentfff0a03fe0f9e84209dd40fd8f93790871d03d75 (diff)
parenta8703b75988e1e700af701116464025679d2feb8 (diff)
Merge #808
808: Add rustfmt.toml with some nice settings. r=lulf a=Dirbaio Co-authored-by: Dario Nieuwenhuis <[email protected]>
Diffstat (limited to 'docs/modules/ROOT/examples/layer-by-layer/blinky-async/src')
-rw-r--r--docs/modules/ROOT/examples/layer-by-layer/blinky-async/src/main.rs12
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
5use defmt_rtt as _;
6use panic_probe as _;
7
8use embassy::executor::Spawner; 5use embassy::executor::Spawner;
9use embassy_stm32::{ 6use embassy_stm32::exti::ExtiInput;
10 exti::ExtiInput, 7use embassy_stm32::gpio::{Input, Level, Output, Pull, Speed};
11 gpio::{Input, Level, Output, Pull, Speed}, 8use embassy_stm32::Peripherals;
12 Peripherals, 9use {defmt_rtt as _, panic_probe as _};
13};
14 10
15#[embassy::main] 11#[embassy::main]
16async fn main(_s: Spawner, p: Peripherals) { 12async fn main(_s: Spawner, p: Peripherals) {