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:
Sebastian Dröge 2020-11-19 20:30:51 +02:00
parent 389fa306aa
commit 89c4f68fa3

View file

@ -159,7 +159,7 @@ impl fmt::Debug for MessageRef {
CStr::from_ptr(type_).to_str().unwrap() CStr::from_ptr(type_).to_str().unwrap()
}) })
.field("seqnum", seqnum) .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()) .field("structure", &self.get_structure())
.finish() .finish()
} }