mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 19:11:06 +00:00
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:
parent
40d2db7095
commit
24d9dc6209
1 changed files with 8 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue