You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: casting u8 to u64 may become silently lossy if types change
--> src/de.rs:284:31
|
284 | let mut res = (c - b'0') as u64;
| ^^^^^^^^^^^^^^^^^ help: try: `u64::from((c - b'0'))`
(and lots more like this)
The text was updated successfully, but these errors were encountered:
I agree that u64::from is theoretically safer and more correct but I disagree that there is any practical risk from refactoring the input type wrong. Do you have any examples of this causing problems in practice? Maybe it is the sort of thing I need to experience myself before becoming a believer.
(and lots more like this)
The text was updated successfully, but these errors were encountered: