Rust Brain Teasers: Type Conversion

Title: Rust Brain Teasers: Type Conversion pg. 12 in the PDF

clippy does lints for both narrowing a type which may be lossy (clippy::cast-possible-truncation) and for casting a type which may be lossy in the future if the type is changed (clippy::cast-lossless). Neither of these is enabled by default, but both are on in clippy::pedantic