From 2e5c1fc0e36e812dd05ca21614dd5f9b09191f38 Mon Sep 17 00:00:00 2001 From: Jennifer Wilcox <jennifer@nitori.org> Date: Sat, 24 Apr 2021 16:22:27 -0500 Subject: [PATCH] Cleanup wacky imports in examples --- rp2040-hal/examples/blinky.rs | 8 +++----- rp2040-hal/examples/gpio_in_out.rs | 8 +++----- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/rp2040-hal/examples/blinky.rs b/rp2040-hal/examples/blinky.rs index a51c50c..3e53311 100644 --- a/rp2040-hal/examples/blinky.rs +++ b/rp2040-hal/examples/blinky.rs @@ -4,17 +4,15 @@ #![no_std] #![no_main] -use panic_halt as _; - use cortex_m_rt::entry; +use embedded_hal::digital::v2::OutputPin; +use panic_halt as _; +use rp2040_hal::prelude::*; #[link_section = ".boot2"] #[used] pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER; -use embedded_hal::digital::v2::OutputPin; -use rp2040_hal::prelude::*; - #[entry] fn main() -> ! { let mut pac = rp2040_pac::Peripherals::take().unwrap(); diff --git a/rp2040-hal/examples/gpio_in_out.rs b/rp2040-hal/examples/gpio_in_out.rs index 77a9271..b162483 100644 --- a/rp2040-hal/examples/gpio_in_out.rs +++ b/rp2040-hal/examples/gpio_in_out.rs @@ -6,17 +6,15 @@ #![no_std] #![no_main] -use panic_halt as _; - use cortex_m_rt::entry; +use embedded_hal::digital::v2::{InputPin, OutputPin}; +use panic_halt as _; +use rp2040_hal::prelude::*; #[link_section = ".boot2"] #[used] pub static BOOT2: [u8; 256] = rp2040_boot2::BOOT_LOADER; -use embedded_hal::digital::v2::{InputPin, OutputPin}; -use rp2040_hal::prelude::*; - #[entry] fn main() -> ! { let mut pac = rp2040_pac::Peripherals::take().unwrap();