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 | 93db9e7ee01d61cb97b4f7b3d61903477910cae2 (patch) | |
| tree | 1769ebc661756b170deb03ce2bc48c9616a89d9f /compiler/rustc_resolve/src | |
| parent | e43d139a82620a268d3828a73e12a8679339e8f8 (diff) | |
| download | rust-93db9e7ee01d61cb97b4f7b3d61903477910cae2.tar.gz rust-93db9e7ee01d61cb97b4f7b3d61903477910cae2.zip | |
Remove uncessary parens in closure body with unused lint
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/late/diagnostics.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_resolve/src/late/diagnostics.rs b/compiler/rustc_resolve/src/late/diagnostics.rs index e015eb7a636..8114021510e 100644 --- a/compiler/rustc_resolve/src/late/diagnostics.rs +++ b/compiler/rustc_resolve/src/late/diagnostics.rs @@ -328,8 +328,7 @@ impl<'ast, 'ra, 'tcx> LateResolutionVisitor<'_, 'ast, 'ra, 'tcx> { let module_did = mod_prefix.as_ref().and_then(Res::mod_def_id); let mod_prefix = - mod_prefix.map_or_else(String::new, |res| (format!("{} ", res.descr()))); - + mod_prefix.map_or_else(String::new, |res| format!("{} ", res.descr())); (mod_prefix, format!("`{}`", Segment::names_to_string(mod_path)), module_did, None) }; |
