diff --git a/gstreamer/src/structure.rs b/gstreamer/src/structure.rs index 82fd7725a..3ac510976 100644 --- a/gstreamer/src/structure.rs +++ b/gstreamer/src/structure.rs @@ -506,6 +506,12 @@ impl StructureRef { } } +impl fmt::Display for StructureRef { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + f.write_str(&StructureRef::to_string(self)) + } +} + impl fmt::Debug for StructureRef { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { f.write_str(&StructureRef::to_string(self))