graphmanager: Fix various clippy issues

fix uninlined_format_args clippy warning
This commit is contained in:
Stéphane Cerveau 2023-02-13 16:39:02 +01:00
parent a02c99fb61
commit e2a62ae4d4
2 changed files with 4 additions and 4 deletions

View file

@ -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');
}
}

View file

@ -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:?}")
}
}