Remove some unnecessary prelude reexports (#2564)

* Remove some unnecessary prelude reexports

* Fix test
This commit is contained in:
Dániel Buga 2024-11-19 14:31:08 +01:00 committed by GitHub
parent 7821968df8
commit 70fe8fb077
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 9 deletions

View File

@ -20,13 +20,7 @@ mod imp {
#[cfg(any(dport, pcr, system))] #[cfg(any(dport, pcr, system))]
pub use crate::clock::Clock as _esp_hal_clock_Clock; pub use crate::clock::Clock as _esp_hal_clock_Clock;
#[cfg(gpio)] #[cfg(gpio)]
pub use crate::gpio::{ pub use crate::gpio::Pin as _esp_hal_gpio_Pin;
InputPin as _esp_hal_gpio_InputPin,
OutputPin as _esp_hal_gpio_OutputPin,
Pin as _esp_hal_gpio_Pin,
};
#[cfg(any(i2c0, i2c1))]
pub use crate::i2c::master::Instance as _esp_hal_i2c_master_Instance;
#[cfg(ledc)] #[cfg(ledc)]
pub use crate::ledc::{ pub use crate::ledc::{
channel::{ channel::{
@ -45,7 +39,5 @@ mod imp {
}; };
#[cfg(any(systimer, timg0, timg1))] #[cfg(any(systimer, timg0, timg1))]
pub use crate::timer::Timer as _esp_hal_timer_Timer; pub use crate::timer::Timer as _esp_hal_timer_Timer;
#[cfg(any(uart0, uart1, uart2))]
pub use crate::uart::Instance as _esp_hal_uart_Instance;
pub use crate::{clock::CpuClock, entry, macros::*, InterruptConfigurable}; pub use crate::{clock::CpuClock, entry, macros::*, InterruptConfigurable};
} }

View File

@ -9,6 +9,7 @@
#[embedded_test::tests] #[embedded_test::tests]
mod tests { mod tests {
use esp_hal::{ use esp_hal::{
gpio::OutputPin,
prelude::*, prelude::*,
uart::{UartRx, UartTx}, uart::{UartRx, UartTx},
}; };