diff --git a/src/graphmanager/node.rs b/src/graphmanager/node.rs index 6bb247d..f1fbc13 100644 --- a/src/graphmanager/node.rs +++ b/src/graphmanager/node.rs @@ -18,8 +18,9 @@ use std::cell::{Cell, Ref, RefCell}; use std::collections::HashMap; use std::fmt; +use std::fmt::Write as _; -#[derive(Debug, Clone, PartialEq)] +#[derive(Debug, Clone, PartialEq, Eq)] pub enum NodeType { Source, Transform, @@ -292,7 +293,7 @@ impl Node { let mut description = String::from(""); for (name, value) in self_.properties.borrow().iter() { if !self.hidden_property(name) { - description.push_str(&format!("{}:{}", name, value)); + let _ = write!(description, "{}:{}", name, value); description.push('\n'); } } diff --git a/src/graphmanager/port.rs b/src/graphmanager/port.rs index d3f2ae5..5ce7047 100644 --- a/src/graphmanager/port.rs +++ b/src/graphmanager/port.rs @@ -20,7 +20,7 @@ use std::fmt; use super::{PropertyExt, SelectionExt}; -#[derive(Debug, Clone, PartialOrd, PartialEq, Copy)] +#[derive(Debug, Clone, PartialOrd, PartialEq, Eq, Copy)] pub enum PortDirection { Input, Output, @@ -46,7 +46,7 @@ impl PortDirection { } /// Port's presence -#[derive(Debug, Clone, PartialEq, PartialOrd, Copy)] +#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Copy)] pub enum PortPresence { /// Can not be removed from his parent independantly Always,