diff options
Diffstat (limited to 'src/layout/shape.rs')
| -rw-r--r-- | src/layout/shape.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/layout/shape.rs b/src/layout/shape.rs index 2e66a0dd..ed70dd95 100644 --- a/src/layout/shape.rs +++ b/src/layout/shape.rs @@ -4,8 +4,7 @@ use super::*; use crate::util::RcExt; /// Places its child into a sizable and fillable shape. -#[derive(Debug)] -#[cfg_attr(feature = "layout-cache", derive(Hash))] +#[derive(Debug, Hash)] pub struct ShapeNode { /// Which shape to place the child into. pub shape: ShapeKind, @@ -105,9 +104,3 @@ impl InlineLevel for ShapeNode { frame } } - -impl From<ShapeNode> for InlineNode { - fn from(node: ShapeNode) -> Self { - Self::new(node) - } -} |
