mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-09-26 20:00:35 +00:00
Always use the core prelude
This commit is contained in:
parent
201ef13ab6
commit
f728cf6863
@ -65,7 +65,6 @@ pub mod config {
|
||||
))]
|
||||
pub use super::tdm::config::*;
|
||||
|
||||
use core::convert::TryFrom;
|
||||
use esp_idf_sys::{
|
||||
i2s_mclk_multiple_t, i2s_mclk_multiple_t_I2S_MCLK_MULTIPLE_128,
|
||||
i2s_mclk_multiple_t_I2S_MCLK_MULTIPLE_256, i2s_mclk_multiple_t_I2S_MCLK_MULTIPLE_384,
|
||||
|
@ -7,10 +7,7 @@ use esp_idf_sys::*;
|
||||
pub(super) mod config {
|
||||
#[allow(unused)]
|
||||
use crate::{gpio::*, i2s::config::*, peripheral::*};
|
||||
use core::{
|
||||
convert::TryFrom,
|
||||
ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, Not},
|
||||
};
|
||||
use core::ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, Not};
|
||||
use esp_idf_sys::*;
|
||||
|
||||
/// Automatic total number of slots, equivalent to the maximum active slot number.
|
||||
|
@ -52,7 +52,6 @@
|
||||
//! ahead of time.
|
||||
|
||||
use core::cell::UnsafeCell;
|
||||
use core::convert::{TryFrom, TryInto};
|
||||
use core::marker::PhantomData;
|
||||
use core::time::Duration;
|
||||
use core::{ptr, slice};
|
||||
|
@ -13,8 +13,6 @@
|
||||
//! let frequency_hz_1 = 1.Hz() + frequency_khz_3.into(),
|
||||
//! ```
|
||||
|
||||
use core::convert::TryFrom;
|
||||
use core::convert::TryInto;
|
||||
use core::fmt;
|
||||
|
||||
pub type ValueType = u32;
|
||||
|
Loading…
x
Reference in New Issue
Block a user