New lint: "unnecessary return foo()
because foo returns ()"
#8055
Labels
A-lints
Area: Lints (warnings about flaws in source code) such as unused_mut.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
As suggested by @huonw in IRC.
From sha1 implementation here:
This last line should emit the warning.
The text was updated successfully, but these errors were encountered: