From 24d9dc620935709bf63eaee97f069a2d50dda708 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 18 Jun 2019 16:33:19 +0530 Subject: [PATCH] gstreamer: tags: make call to to_string() explicit This one was actually working but better to be safe as it may be ambigious. --- gstreamer/src/tags.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gstreamer/src/tags.rs b/gstreamer/src/tags.rs index 7fcd90770..915469f51 100644 --- a/gstreamer/src/tags.rs +++ b/gstreamer/src/tags.rs @@ -520,7 +520,7 @@ impl fmt::Debug for TagListRef { impl fmt::Display for TagListRef { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { - f.write_str(&self.to_string()) + f.write_str(&TagListRef::to_string(self)) } } @@ -1098,4 +1098,11 @@ mod tests { Some("first one, second one") ); } + + #[test] + fn test_display() { + ::init().unwrap(); + + format!("{}", TagList::new()); + } }