4 ms·
It's fine for increasing width - e.g. u8 -> u16. There's a lint you can enable to detct truncation - https://rust-lang.github.io/rust-clippy/master/#cast_possi
by richardwhiuk 6y ago
It's fine for increasing width - e.g. u8 -> u16.
There's a lint you can enable to detct truncation - https://rust-lang.github.io/rust-clippy/master/#cast_possible_truncation https://rust-lang.github.io/rust-clippy/master/#cast_possibl...