This commit is contained in:
John Smith
2023-03-03 17:17:23 -05:00
parent ff9b421631
commit d527c4c8e7
4 changed files with 44 additions and 13 deletions

View File

@@ -27,7 +27,6 @@ pub type ValueSeqNum = u32;
/// FOURCC code
#[derive(
Copy,
Debug,
Default,
Clone,
Hash,
@@ -61,6 +60,12 @@ impl fmt::Display for FourCC {
write!(f, "{}", String::from_utf8_lossy(&self.0))
}
}
impl fmt::Debug for FourCC {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
write!(f, "{}", String::from_utf8_lossy(&self.0))
}
}
impl FromStr for FourCC {
type Err = VeilidAPIError;
fn from_str(s: &str) -> Result<Self, Self::Err> {