ferris-says icon indicating copy to clipboard operation
ferris-says copied to clipboard

Remove conditional compilation from mascot constants

Open dtolnay opened this issue 1 year ago • 0 comments

Using #[cfg(...)] is not ideal here because it harms compile-time checking. For example, in order to be sure there isn't a type error, one must separately compile with and without "clippy" when making changes to the crate.

Rust supports if in constants since version 1.46.0 and it's a better fit for this code.

dtolnay avatar Jan 14 '24 01:01 dtolnay