From e2a62ae4d4e1f2ec9883032aad3d67cfd5e7f9d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Mon, 13 Feb 2023 16:39:02 +0100 Subject: [PATCH] graphmanager: Fix various clippy issues fix uninlined_format_args clippy warning --- src/graphmanager/node.rs | 4 ++-- src/graphmanager/port.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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:?}") } }