Are casts encouraged in Rust?
Are casts encouraged in Rust?
Posted Jun 29, 2025 19:39 UTC (Sun) by alx.manpages (subscriber, #145117)In reply to: Are casts encouraged in Rust? by alx.manpages
Parent article: How to write Rust in the kernel: part 2
Actually, should have written something like
constexpr int16_t BMCR_SPEED100 = (int16_t) uapi_BMCR_SPEED100