Friendica
Manos Pitsidianakis
Manos Pitsidianakis

Manos Pitsidianakis

epilys@chaos.social

Manos Pitsidianakis

epilys@chaos.social

Virtualization & Emulation Engineer for Arm systems @LinaroLtd QEMU and rust-vmm contributor.

Previously worked on compilers, filesystems, database internals, distributed systems.
I love strong type systems and type safety, absurd humor, visual arts, typography.
I have many non-apparent disabilities.

Content and opinions are not my employer's.

keyoxide.org/7C721DF9DB3CC7182…

EET (UTC+02 or UTC+03 on DST)

PS: έπηλυς means "outlander" in Greek.

ActivityPub
2024-11-25 07:15:22 2024-11-24 17:37:04 2024-11-24 13:30:21 6102315

Manos Pitsidianakis
Manos Pitsidianakis
mastodon - Link to source

Manos Pitsidianakis

9 months ago • •

Manos Pitsidianakis

9 months ago • •


Will never stop being positively surprised by clippy

#RustLang #Rust

An error message produced by Rust's clippy tool. The lint is called "imprecise floating point operations", and it has detected a line in some Rust code that computes a hypotenuse and recommends a more accurate way. The error message follows verbatim:

error: hypotenuse 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
#rust #RustLang
  •  Languages
  •  Search Text
  •  Share via ...

reshared this

Hubert Figuière, treefit and modulux reshared this.

⇧