Skip to content

Commit

Permalink
Remove redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jannic committed Mar 3, 2024
1 parent b46447b commit 745c9dc
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
4 changes: 0 additions & 4 deletions rp2040-hal/src/clocks/clock_sources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ use crate::{
bank0::{Gpio20, Gpio22},
FunctionClock, Pin, PullNone, PullType,
},
pll::{Locked, PhaseLockedLoop},
rosc::{Enabled, RingOscillator},
typelevel::Sealed,
xosc::{CrystalOscillator, Stable},
};
use pac::{PLL_SYS, PLL_USB};

pub(crate) type PllSys = PhaseLockedLoop<Locked, PLL_SYS>;
impl Sealed for PllSys {}
Expand Down
2 changes: 1 addition & 1 deletion rp2040-hal/src/pll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// See [Chapter 2 Section 18](https://datasheets.raspberrypi.org/rp2040/rp2040_datasheet.pdf) for more details

use core::{
convert::{Infallible, TryInto},
convert::Infallible,
marker::PhantomData,
ops::{Deref, Range, RangeInclusive},
};
Expand Down
2 changes: 1 addition & 1 deletion rp2040-hal/src/rtc/datetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub struct DateTime {
pub month: u8,
/// 1..28,29,30,31 depending on month
pub day: u8,
///
/// The day of week
pub day_of_week: DayOfWeek,
/// 0..23
pub hour: u8,
Expand Down
2 changes: 1 addition & 1 deletion rp2040-hal/src/usb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
//! ```

use core::cell::RefCell;
use critical_section::{self, Mutex};
use critical_section::Mutex;

use usb_device::{
bus::{PollResult, UsbBus as UsbBusTrait},
Expand Down
1 change: 0 additions & 1 deletion rp2040-hal/src/xosc.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Crystal Oscillator (XOSC)
// See [Chapter 2 Section 16](https://datasheets.raspberrypi.org/rp2040/rp2040_datasheet.pdf) for more details

use core::convert::TryInto;
use core::{convert::Infallible, ops::RangeInclusive};

use fugit::HertzU32;
Expand Down

0 comments on commit 745c9dc

Please sign in to comment.