diff --git a/rp2040-hal-examples/src/bin/i2c_async.rs b/rp2040-hal-examples/src/bin/i2c_async.rs index bd9ec051e..9e490e786 100644 --- a/rp2040-hal-examples/src/bin/i2c_async.rs +++ b/rp2040-hal-examples/src/bin/i2c_async.rs @@ -10,7 +10,6 @@ #![no_std] #![no_main] -use embassy_executor::Executor; // Ensure we halt the program on panic (if we don't mention this crate it won't // be linked) use panic_halt as _; @@ -27,6 +26,7 @@ use hal::{ }; // Import required types & traits. +use embassy_executor::Executor; use embedded_hal_async::i2c::I2c; use hal::{ gpio::{FunctionI2C, Pin, PullUp}, diff --git a/rp2040-hal-examples/src/bin/i2c_async_cancelled.rs b/rp2040-hal-examples/src/bin/i2c_async_cancelled.rs index 6a4e55ef0..90ac5a065 100644 --- a/rp2040-hal-examples/src/bin/i2c_async_cancelled.rs +++ b/rp2040-hal-examples/src/bin/i2c_async_cancelled.rs @@ -16,7 +16,6 @@ use core::task::Poll; // be linked) //use panic_halt as _; -use embassy_executor::Executor; use embedded_hal_async::i2c::I2c; use futures::FutureExt; @@ -39,6 +38,7 @@ use hal::{ }; use defmt_rtt as _; +use embassy_executor::Executor; use panic_probe as _; use static_cell::StaticCell; diff --git a/rp235x-hal-examples/src/bin/i2c_async.rs b/rp235x-hal-examples/src/bin/i2c_async.rs index c8f43975a..291cc1439 100644 --- a/rp235x-hal-examples/src/bin/i2c_async.rs +++ b/rp235x-hal-examples/src/bin/i2c_async.rs @@ -10,7 +10,6 @@ #![no_std] #![no_main] -use embassy_executor::Executor; // Ensure we halt the program on panic (if we don't mention this crate it won't // be linked) use panic_halt as _; @@ -29,6 +28,7 @@ use hal::{ }; // Import required types & traits. +use embassy_executor::Executor; use embedded_hal_async::i2c::I2c; use static_cell::StaticCell; diff --git a/rp235x-hal-examples/src/bin/i2c_async_cancelled.rs b/rp235x-hal-examples/src/bin/i2c_async_cancelled.rs index 76b276d59..f85240e9c 100644 --- a/rp235x-hal-examples/src/bin/i2c_async_cancelled.rs +++ b/rp235x-hal-examples/src/bin/i2c_async_cancelled.rs @@ -15,7 +15,6 @@ use panic_halt as _; use core::task::Poll; -use embassy_executor::Executor; use embedded_hal_async::i2c::I2c; use futures::FutureExt; @@ -33,6 +32,7 @@ use hal::{ }; use defmt_rtt as _; +use embassy_executor::Executor; use static_cell::StaticCell; /// Tell the Boot ROM about our application