From e089b6ea40015e012302dc55ac5d6cb42ca4876e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 8 Feb 2022 16:39:37 +0100 Subject: Set rules for everything --- src/library/shape.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/library/shape.rs') diff --git a/src/library/shape.rs b/src/library/shape.rs index 8ac9956f..95e3e288 100644 --- a/src/library/shape.rs +++ b/src/library/shape.rs @@ -11,7 +11,7 @@ pub struct ShapeNode { /// Which shape to place the child into. pub kind: S, /// The child node to place into the shape, if any. - pub child: Option, + pub child: Option, } #[class] @@ -50,14 +50,6 @@ impl ShapeNode { .sized(Spec::new(width, height)), )) } - - fn set(args: &mut Args, styles: &mut StyleMap) -> TypResult<()> { - styles.set_opt(Self::FILL, args.named("fill")?); - styles.set_opt(Self::STROKE, args.named("stroke")?); - styles.set_opt(Self::THICKNESS, args.named("thickness")?); - styles.set_opt(Self::PADDING, args.named("padding")?); - Ok(()) - } } impl Layout for ShapeNode { -- cgit v1.2.3