summaryrefslogtreecommitdiff
path: root/src/library/shape.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-12-30 11:37:11 +0100
committerLaurenz <laurmaedje@gmail.com>2021-12-30 12:00:12 +0100
commitf5dcb84e36a38182218c7f907b861b12d2bd2c1c (patch)
tree1fce04fb53d2ad5b61f5f3151e43d80e2684e579 /src/library/shape.rs
parentfef55025177ea4f248e61b68fab365bfbc0e47fb (diff)
Make clippy a bit happier
Diffstat (limited to 'src/library/shape.rs')
-rw-r--r--src/library/shape.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/library/shape.rs b/src/library/shape.rs
index 3eb1a794..15a857ef 100644
--- a/src/library/shape.rs
+++ b/src/library/shape.rs
@@ -79,9 +79,7 @@ fn shape_impl(
}
// The shape's contents.
- let child = args
- .find()
- .map(|body: Node| body.into_block().padded(Sides::splat(padding)));
+ let child = args.find().map(|body: PackedNode| body.padded(Sides::splat(padding)));
Ok(Value::inline(
ShapeNode { kind, fill, stroke, child }