mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-11-22 00:50:59 +00:00
graphmanager: Fix various clippy issues
fix uninlined_format_args clippy warning
This commit is contained in:
parent
a02c99fb61
commit
e2a62ae4d4
2 changed files with 4 additions and 4 deletions
|
@ -31,7 +31,7 @@ pub enum NodeType {
|
||||||
|
|
||||||
impl fmt::Display for NodeType {
|
impl fmt::Display for NodeType {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
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("");
|
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) {
|
||||||
let _ = write!(description, "{}:{}", name, value);
|
let _ = write!(description, "{name}:{value}");
|
||||||
description.push('\n');
|
description.push('\n');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ pub enum PortDirection {
|
||||||
|
|
||||||
impl fmt::Display for PortDirection {
|
impl fmt::Display for PortDirection {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
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 {
|
impl fmt::Display for PortPresence {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
write!(f, "{:?}", self)
|
write!(f, "{self:?}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue