Skip to content

Commit

Permalink
Improve location of new imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Sep 14, 2024
1 parent 1675e2c commit 2289a5b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rp2040-hal-examples/src/bin/i2c_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 _;
Expand All @@ -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},
Expand Down
2 changes: 1 addition & 1 deletion rp2040-hal-examples/src/bin/i2c_async_cancelled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -39,6 +38,7 @@ use hal::{
};

use defmt_rtt as _;
use embassy_executor::Executor;
use panic_probe as _;
use static_cell::StaticCell;

Expand Down
2 changes: 1 addition & 1 deletion rp235x-hal-examples/src/bin/i2c_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 _;
Expand All @@ -29,6 +28,7 @@ use hal::{
};

// Import required types & traits.
use embassy_executor::Executor;
use embedded_hal_async::i2c::I2c;
use static_cell::StaticCell;

Expand Down
2 changes: 1 addition & 1 deletion rp235x-hal-examples/src/bin/i2c_async_cancelled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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
Expand Down

0 comments on commit 2289a5b

Please sign in to comment.