Commit b29177d
authored
## Summary
- `is_expr_default_nested` in `clippy_lints/src/unit_types/unit_arg.rs`
was
written as `block.expr.is_some() && is_expr_default_nested(cx,
block.expr.unwrap())`,
which is exactly the pattern that clippy's own `unnecessary_unwrap` lint
flags.
- Replace it with `block.expr.is_some_and(|e| is_expr_default_nested(cx,
e))`.
changelog: none
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
0 commit comments