40ce9f83b6
Fix FP with empty return for `needless_return` lint This fixes a false positive in `needless_return` lint, when triggered in a closure using `return` statement without value. Fixes: #6501 changelog: none