use super::*;
impl From<Vec<u8>> for FileDataString {
fn from(bytes: Vec<u8>) -> Self {
FileDataString(
String::from_utf8(bytes).unwrap_or_else(|_: std::string::FromUtf8Error| String::new()),
)
}
}
impl fmt::Display for FileDataString {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
}
}