summaryrefslogtreecommitdiffstats
path: root/graphics/src/widget/canvas/frame.rs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/widget/canvas/frame.rs')
-rw-r--r--graphics/src/widget/canvas/frame.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/graphics/src/widget/canvas/frame.rs b/graphics/src/widget/canvas/frame.rs
index 8e198b29..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,10 +141,9 @@ impl Frame {
let options =
tessellation::FillOptions::default().with_fill_rule(rule.into());
- let _ = self
- .fill_tessellator
+ self.fill_tessellator
.tessellate_rectangle(
- &lyon::math::Rect::new(top_left, size.into()),
+ &lyon::math::Box2D::new(top_left, top_left + size),
&options,
&mut buffers,
)
@@ -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