diff options
| author | yukang <moorekang@gmail.com> | 2025-06-29 11:40:59 +0800 |
|---|---|---|
| committer | yukang <moorekang@gmail.com> | 2025-07-10 09:25:56 +0800 |
| commit | 0a64bfd6858606fae0b112673d4a28b2d6f149f8 (patch) | |
| tree | 30362a763c89f702334411f774b98d9bd0ece2e4 /clippy_lints/src | |
| parent | 5228e2846995ef24c743710877b6668fa0260ba6 (diff) | |
| download | rust-0a64bfd6858606fae0b112673d4a28b2d6f149f8.tar.gz rust-0a64bfd6858606fae0b112673d4a28b2d6f149f8.zip | |
Remove uncessary parens in closure body with unused lint
Diffstat (limited to 'clippy_lints/src')
| -rw-r--r-- | clippy_lints/src/unused_async.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/unused_async.rs b/clippy_lints/src/unused_async.rs index 8ceaa3dc58e..e67afc7f5a8 100644 --- a/clippy_lints/src/unused_async.rs +++ b/clippy_lints/src/unused_async.rs @@ -169,7 +169,7 @@ impl<'tcx> LateLintPass<'tcx> for UnusedAsync { let iter = self .unused_async_fns .iter() - .filter(|UnusedAsyncFn { def_id, .. }| (!self.async_fns_as_value.contains(def_id))); + .filter(|UnusedAsyncFn { def_id, .. }| !self.async_fns_as_value.contains(def_id)); for fun in iter { span_lint_hir_and_then( |
