mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-28 12:50:53 +00:00
Remove unused conversions (#3600)
This commit is contained in:
parent
8237e04fff
commit
8644f9b928
@ -572,22 +572,6 @@ enum Ack {
|
||||
Nack = 1,
|
||||
}
|
||||
|
||||
impl From<u32> for Ack {
|
||||
fn from(ack: u32) -> Self {
|
||||
match ack {
|
||||
0 => Ack::Ack,
|
||||
1 => Ack::Nack,
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<Ack> for u32 {
|
||||
fn from(ack: Ack) -> u32 {
|
||||
ack as u32
|
||||
}
|
||||
}
|
||||
|
||||
/// I2C driver configuration
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, procmacros::BuilderLite)]
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
|
Loading…
x
Reference in New Issue
Block a user