mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 14:38:46 +00:00
[`no_effect`]: Suggest adding `return` if applicable Closes #10941 Unfortunately doesn't catch anything complex as `no_effect` already wouldn't, but I'm fine with that (it catches `ControlFlow` at least :D) changelog: [`no_effect`]: Suggest adding `return` if statement has same type as function's return type and is the last statement in a block |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |