TWiR quote of the week

Will never stop being positively surprised by clippy

error: hypothenuse can be computed more accurately:
   --> src/main.rs:835:5
    |
835 |     (width * width + height * height).sqrt() / diag
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `width.hypot(height)`
    |
help: for further information, visit https://rust-lang.github.io/rust-clippy/master/index.html#imprecise_flops

-- Manos Pitsidianakis (and rust-clippy) on Mastodon

15 Likes