graphmanager: fix some lint issues with rust 1.63

Fix format and missing derive
This commit is contained in:
Stéphane Cerveau 2022-09-06 12:37:26 +02:00
parent ebbc1d2261
commit 6b657891c6
2 changed files with 5 additions and 4 deletions

View File

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

View File

@ -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,