Skip to content

Commit

Permalink
removing dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
maebli committed Jun 13, 2024
1 parent f9a50e2 commit e69bd71
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/user_data/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,6 @@ impl Default for DataRecords {
DataRecords::new()
}
}
// #[cfg(feature = "serde")]
// impl serde::Serialize for StatusField {
// fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
// where
// S: serde::Serializer,
// {
// serializer.serialize_u8(self.bits())
// }
// }
// #[cfg(feature = "serde")]
// impl<'de> serde::Deserialize<'de> for StatusField {
// fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
// where
// D: serde::Deserializer<'de>,
// {
// let bits = u8::deserialize(deserializer)?;
// StatusField::from_bits(bits)
// .ok_or_else(|| serde::de::Error::custom("Invalid bits for StatusField"))
// }
// }

bitflags::bitflags! {
#[repr(transparent)]
Expand Down

0 comments on commit e69bd71

Please sign in to comment.