summaryrefslogtreecommitdiff
path: root/src/layout/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/mod.rs')
-rw-r--r--src/layout/mod.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs
index 96bd7e7e..1ca9001d 100644
--- a/src/layout/mod.rs
+++ b/src/layout/mod.rs
@@ -30,6 +30,7 @@ pub use shaping::*;
pub use stack::*;
pub use tree::*;
+use std::fmt::Debug;
use std::rc::Rc;
use crate::font::FontStore;
@@ -73,7 +74,7 @@ impl<'a> LayoutContext<'a> {
}
/// Layout a node.
-pub trait Layout {
+pub trait Layout: Debug {
/// Layout the node into the given regions.
fn layout(
&self,