Add Display impl for StructureRef too

This commit is contained in:
Sebastian Dröge 2018-04-06 13:21:45 +03:00
parent 7c01e1e46f
commit 9427e75fa4

View file

@ -485,6 +485,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))