diff options
author | 2022-07-11 15:59:38 +0200 | |
---|---|---|
committer | 2022-07-11 15:59:38 +0200 | |
commit | f7059a1c9a6ce46ba833400dde860912da780464 (patch) | |
tree | 6bb6c6159f8d5c08e4dc996720f51e6638fd34ac /graphics | |
parent | fe34b7a339261d8fc9a96bf993d529c2ad37299c (diff) | |
download | iced-f7059a1c9a6ce46ba833400dde860912da780464.tar.gz iced-f7059a1c9a6ce46ba833400dde860912da780464.tar.bz2 iced-f7059a1c9a6ce46ba833400dde860912da780464.zip |
Remove unnecessary `let` bindings in `canvas::Frame`
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/src/widget/canvas/frame.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/graphics/src/widget/canvas/frame.rs b/graphics/src/widget/canvas/frame.rs index 0a164fa8..2f46079c 100644 --- a/graphics/src/widget/canvas/frame.rs +++ b/graphics/src/widget/canvas/frame.rs @@ -110,7 +110,7 @@ impl Frame { ) }; - let _ = result.expect("Tessellate path"); + result.expect("Tessellate path"); } /// Draws an axis-aligned rectangle given its top-left corner coordinate and @@ -141,8 +141,7 @@ impl Frame { let options = tessellation::FillOptions::default().with_fill_rule(rule.into()); - let _ = self - .fill_tessellator + self.fill_tessellator .tessellate_rectangle( &lyon::math::Box2D::new(top_left, top_left + size), &options, @@ -189,7 +188,7 @@ impl Frame { ) }; - let _ = result.expect("Stroke path"); + result.expect("Stroke path"); } /// Draws the characters of the given [`Text`] on the [`Frame`], filling |