Skip to content

Commit

Permalink
satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
flxzt committed Jul 24, 2023
1 parent 6cf8d39 commit cc6d22b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piet-web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ impl WebRenderContext<'_> {
fn set_stroke(&mut self, width: f64, style: Option<&StrokeStyle>) {
let default_style = StrokeStyle::default();
let style = style.unwrap_or(&default_style);
let mut canvas_state = self.canvas_states.last_mut().unwrap();
let canvas_state = self.canvas_states.last_mut().unwrap();

if width != canvas_state.line_width {
self.ctx.set_line_width(width);
Expand Down

0 comments on commit cc6d22b

Please sign in to comment.