Skip to content

Commit

Permalink
Removes unnecessary cast
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Jan 23, 2023
1 parent 22ccc6f commit bd1345e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/circle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl Circle {

context.save()?;
context.fill()?;
context.translate(f64::from(width) as f64 / -4., f64::from(height) as f64 / 2.);
context.translate(f64::from(width) / -4., f64::from(height) / 2.);
context.rotate(std::f64::consts::PI / -4.);
context.set_source_rgb(0., 0., 0.);
context.rectangle(20., 30., 40., 10.);
Expand Down

0 comments on commit bd1345e

Please sign in to comment.