Lint `Option.map(f)` where f returns unit #1467
killercup left a comment •
Sorry, I'm not a regular Clippy contributor or anything, but I just wanted to mention that this construct is not called "nil function" in Rust – as Rust doesn't have a
Functions without return values return an empty tuple (
One problem I had was some "analysis paralysis" over classifying things as Allow/Warn/Deny. As discussed in other comments there doesn't seem to be one canonical style so it isn't obvious what the default values should be.