From f728cf6863c82533d8f34bec9374731cae7f8732 Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Wed, 21 Feb 2024 10:26:43 +0000 Subject: [PATCH] Always use the core prelude --- src/i2s.rs | 1 - src/i2s/tdm.rs | 5 +---- src/rmt.rs | 1 - src/units.rs | 2 -- 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/i2s.rs b/src/i2s.rs index 7af58fea2..eac29272c 100644 --- a/src/i2s.rs +++ b/src/i2s.rs @@ -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, diff --git a/src/i2s/tdm.rs b/src/i2s/tdm.rs index 05ee338a1..26e884093 100644 --- a/src/i2s/tdm.rs +++ b/src/i2s/tdm.rs @@ -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. diff --git a/src/rmt.rs b/src/rmt.rs index f68bac6a3..f155e95b4 100644 --- a/src/rmt.rs +++ b/src/rmt.rs @@ -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}; diff --git a/src/units.rs b/src/units.rs index 4df4d7533..bf257e70d 100644 --- a/src/units.rs +++ b/src/units.rs @@ -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;