mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-23 00:26:31 +00:00
gstreamer: Remove redundant clone of element name
error: redundant clone --> gstreamer/src/message.rs:162:63 | 162 | .field("src", &self.get_src().map(|s| s.get_name().to_owned())) | ^^^^^^^^^^^ help: remove this | = note: `-D clippy::redundant-clone` implied by `-D warnings`
This commit is contained in:
parent
389fa306aa
commit
89c4f68fa3
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ impl fmt::Debug for MessageRef {
|
|||
CStr::from_ptr(type_).to_str().unwrap()
|
||||
})
|
||||
.field("seqnum", seqnum)
|
||||
.field("src", &self.get_src().map(|s| s.get_name().to_owned()))
|
||||
.field("src", &self.get_src().map(|s| s.get_name()))
|
||||
.field("structure", &self.get_structure())
|
||||
.finish()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue