diff options
Diffstat (limited to 'src/model/layout.rs')
| -rw-r--r-- | src/model/layout.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/model/layout.rs b/src/model/layout.rs index 78bfedc7..51154286 100644 --- a/src/model/layout.rs +++ b/src/model/layout.rs @@ -1,7 +1,7 @@ //! Layouting infrastructure. use std::any::Any; -use std::fmt::{self, Debug, Formatter}; +use std::fmt::{self, Debug, Formatter, Write}; use std::hash::Hash; use std::sync::Arc; @@ -239,7 +239,9 @@ impl Default for LayoutNode { impl Debug for LayoutNode { fn fmt(&self, f: &mut Formatter) -> fmt::Result { - self.0.fmt(f) + f.write_str("Layout(")?; + self.0.fmt(f)?; + f.write_char(')') } } |
