gstreamer: tags: make call to to_string() explicit

This one was actually working but better to be safe as it may be
ambigious.
This commit is contained in:
Guillaume Desmottes 2019-06-18 16:33:19 +05:30
parent 40d2db7095
commit 24d9dc6209

View file

@ -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());
}
}