Commit ce9b98f3 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Add Display impl for StructureRef too

parent f346d57b
......@@ -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))
......
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