mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-11-25 02:21:00 +00:00
graphmanager: fix some lint issues with rust 1.63
Fix format and missing derive
This commit is contained in:
parent
ebbc1d2261
commit
6b657891c6
2 changed files with 5 additions and 4 deletions
|
@ -18,8 +18,9 @@ use std::cell::{Cell, Ref, RefCell};
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
use std::fmt::Write as _;
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub enum NodeType {
|
pub enum NodeType {
|
||||||
Source,
|
Source,
|
||||||
Transform,
|
Transform,
|
||||||
|
@ -292,7 +293,7 @@ impl Node {
|
||||||
let mut description = String::from("");
|
let mut description = String::from("");
|
||||||
for (name, value) in self_.properties.borrow().iter() {
|
for (name, value) in self_.properties.borrow().iter() {
|
||||||
if !self.hidden_property(name) {
|
if !self.hidden_property(name) {
|
||||||
description.push_str(&format!("{}:{}", name, value));
|
let _ = write!(description, "{}:{}", name, value);
|
||||||
description.push('\n');
|
description.push('\n');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ use std::fmt;
|
||||||
|
|
||||||
use super::{PropertyExt, SelectionExt};
|
use super::{PropertyExt, SelectionExt};
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialOrd, PartialEq, Copy)]
|
#[derive(Debug, Clone, PartialOrd, PartialEq, Eq, Copy)]
|
||||||
pub enum PortDirection {
|
pub enum PortDirection {
|
||||||
Input,
|
Input,
|
||||||
Output,
|
Output,
|
||||||
|
@ -46,7 +46,7 @@ impl PortDirection {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Port's presence
|
/// Port's presence
|
||||||
#[derive(Debug, Clone, PartialEq, PartialOrd, Copy)]
|
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Copy)]
|
||||||
pub enum PortPresence {
|
pub enum PortPresence {
|
||||||
/// Can not be removed from his parent independantly
|
/// Can not be removed from his parent independantly
|
||||||
Always,
|
Always,
|
||||||
|
|
Loading…
Reference in a new issue