Always use the core prelude

This commit is contained in:
ivmarkov 2024-02-21 10:26:43 +00:00
parent 201ef13ab6
commit f728cf6863
4 changed files with 1 additions and 8 deletions

View File

@ -65,7 +65,6 @@ pub mod config {
))] ))]
pub use super::tdm::config::*; pub use super::tdm::config::*;
use core::convert::TryFrom;
use esp_idf_sys::{ use esp_idf_sys::{
i2s_mclk_multiple_t, i2s_mclk_multiple_t_I2S_MCLK_MULTIPLE_128, 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, i2s_mclk_multiple_t_I2S_MCLK_MULTIPLE_256, i2s_mclk_multiple_t_I2S_MCLK_MULTIPLE_384,

View File

@ -7,10 +7,7 @@ use esp_idf_sys::*;
pub(super) mod config { pub(super) mod config {
#[allow(unused)] #[allow(unused)]
use crate::{gpio::*, i2s::config::*, peripheral::*}; use crate::{gpio::*, i2s::config::*, peripheral::*};
use core::{ use core::ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, Not};
convert::TryFrom,
ops::{BitAnd, BitAndAssign, BitOr, BitOrAssign, Not},
};
use esp_idf_sys::*; use esp_idf_sys::*;
/// Automatic total number of slots, equivalent to the maximum active slot number. /// Automatic total number of slots, equivalent to the maximum active slot number.

View File

@ -52,7 +52,6 @@
//! ahead of time. //! ahead of time.
use core::cell::UnsafeCell; use core::cell::UnsafeCell;
use core::convert::{TryFrom, TryInto};
use core::marker::PhantomData; use core::marker::PhantomData;
use core::time::Duration; use core::time::Duration;
use core::{ptr, slice}; use core::{ptr, slice};

View File

@ -13,8 +13,6 @@
//! let frequency_hz_1 = 1.Hz() + frequency_khz_3.into(), //! let frequency_hz_1 = 1.Hz() + frequency_khz_3.into(),
//! ``` //! ```
use core::convert::TryFrom;
use core::convert::TryInto;
use core::fmt; use core::fmt;
pub type ValueType = u32; pub type ValueType = u32;