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

Thank you! It’s definitely worth mentioning Pedantic Clippy, I’ve added this to the beta-2 list.

No problem, love the idea for the book!