Remove unused conversions (#3600)

This commit is contained in:
Dániel Buga 2025-06-05 14:07:35 +02:00 committed by GitHub
parent 8237e04fff
commit 8644f9b928
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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))]