Closed johnthagen closed 7 years ago
The message in particular talked about silently losing precision in the future or something.
Here is the full error:
error: casting u32 to f64 may become silently lossy if types change
--> src/menu.rs:189:26
|
189 | let menu_align = (window_size.width / 2 - 120) as f64;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `f64::from((window_size.width / 2 - 120))`
|
= help: for further information visit https://github.com/rust-lang-nursery/rust-clippy/wiki#cast_lossless
@johnthagen Any idea why they changed the preferred method of casting?