From eea99ec6bf5b7b3667a3bf4c3b1e30cbedb5f263 Mon Sep 17 00:00:00 2001 From: Johan Klokkhammer Helsing Date: Tue, 22 Mar 2022 16:34:20 +0100 Subject: [PATCH] Apply clippy lints --- src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4f3e525..45527e4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -403,9 +403,7 @@ fn extract_shapes( continue; } - let frame = match shape.frame { - Frame::Quad(s) => s, - }; + let Frame::Quad(frame) = shape.frame; extracted_shapes.0.alloc().init(ExtractedShape { color: shape.color,