Remove unnecessary let bindings in canvas::Frame
This commit is contained in:
parent
fe34b7a339
commit
f7059a1c9a
1 changed files with 3 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue