update v3
This commit is contained in:
parent
94b744b194
commit
10d4c4c32c
|
@ -18,14 +18,14 @@ pub struct Attribute {
|
|||
}
|
||||
impl fmt::Display for Attribute {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
write!(f, "{}={}", self.name, self.value)?;
|
||||
write!(f, "{} = {}", self.name, self.value)?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
impl Attribute {
|
||||
pub fn to_string(&self) -> String {
|
||||
format!("{:?}={:?}", self.name, self.value)
|
||||
format!("{} = {}", self.name, self.value)
|
||||
}
|
||||
}
|
||||
#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]
|
||||
|
|
Loading…
Reference in a new issue