update v3

master
Able 2023-05-03 03:43:59 -05:00
parent fb6020217d
commit 80b72e94ec
1 changed files with 2 additions and 2 deletions

View File

@ -18,14 +18,14 @@ pub struct Attribute {
} }
impl fmt::Display for Attribute { impl fmt::Display for Attribute {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}={}", self.name, self.value)?; write!(f, "{} = {}", self.name, self.value)?;
Ok(()) Ok(())
} }
} }
impl Attribute { impl Attribute {
pub fn to_string(&self) -> String { pub fn to_string(&self) -> String {
format!("{:?}={:?}", self.name, self.value) format!("{} = {}", self.name, self.value)
} }
} }
#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)] #[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]