diff --git a/src/graphmanager/node.rs b/src/graphmanager/node.rs index 2c9a93d..c14fd97 100644 --- a/src/graphmanager/node.rs +++ b/src/graphmanager/node.rs @@ -31,7 +31,7 @@ pub enum NodeType { impl fmt::Display for NodeType { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{:?}", self) + write!(f, "{self:?}") } } @@ -311,7 +311,7 @@ impl Node { let mut description = String::from(""); for (name, value) in self_.properties.borrow().iter() { if !self.hidden_property(name) { - let _ = write!(description, "{}:{}", name, value); + let _ = write!(description, "{name}:{value}"); description.push('\n'); } } diff --git a/src/graphmanager/port.rs b/src/graphmanager/port.rs index 4c444ed..40b4c85 100644 --- a/src/graphmanager/port.rs +++ b/src/graphmanager/port.rs @@ -30,7 +30,7 @@ pub enum PortDirection { impl fmt::Display for PortDirection { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{:?}", self) + write!(f, "{self:?}") } } @@ -57,7 +57,7 @@ pub enum PortPresence { impl fmt::Display for PortPresence { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - write!(f, "{:?}", self) + write!(f, "{self:?}") } }