You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example in RustCrypto crates we selectively disable unreadable_literal for most of the constants. I just don't see the point in making files like this more "readable".
Yeah making walls of hex-literals more readable doesn't really make sense. But I would say this is an edge case, since you shouldn't have things like this spread around in your code, but only in a few special files. Disabling the lint in those files seems reasonable to me.
This lint aims more on single literals in your Code, like
constIM_A_FLAG:u16 = 0x00FF8000;
vs
constIM_A_READABLE_FLAG:u16 = 0x00FF_8000;
When having hex literals in code, conciseness is usually more important than readability, so the lint seems to be counter-productive in such cases.
The text was updated successfully, but these errors were encountered: