summaryrefslogtreecommitdiff
path: root/src/model/layout.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-04-30 14:12:28 +0200
committerLaurenz <laurmaedje@gmail.com>2022-04-30 14:12:28 +0200
commitf9e115daf54c29358f890b137f50a33a781af680 (patch)
tree496de52246629ea8039db6beea94eb779ed2851d /src/model/layout.rs
parentf7c67cde72e6a67f45180856b332bae9863243bd (diff)
New block spacing model
Diffstat (limited to 'src/model/layout.rs')
-rw-r--r--src/model/layout.rs6
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(')')
}
}