Commit 40d2db70 authored by Guillaume Desmottes's avatar Guillaume Desmottes 🐐

gstreamer: caps: make call to to_string() explicit

This one was actually working but better to be safe as it may be
ambigious.
parent cd163378
......@@ -509,7 +509,7 @@ impl fmt::Debug for CapsRef {
impl fmt::Display for CapsRef {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str(&self.to_string())
f.write_str(&CapsRef::to_string(self))
}
}
......@@ -652,4 +652,12 @@ mod tests {
.build();
assert_eq!(caps.to_string(), "foo/bar(foo:bla, foo:baz), int=(int)12");
}
#[test]
fn test_display() {
::init().unwrap();
let caps = Caps::new_simple("foo/bar", &[]);
format!("{}", caps);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment