diff options
| author | Michael Goulet <michael@errs.io> | 2022-12-27 17:53:29 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-01-04 00:51:50 +0000 |
| commit | 2baee88bdb6ebbfda067818f5f4194083c2a77c1 (patch) | |
| tree | fb03b82d0b132ace89d825514a5a7bdb9829021a /compiler/rustc_lint/src | |
| parent | 7690fe3bc66cae219301368650317936f0d4e3a9 (diff) | |
| download | rust-2baee88bdb6ebbfda067818f5f4194083c2a77c1.tar.gz rust-2baee88bdb6ebbfda067818f5f4194083c2a77c1.zip | |
Address comments
Diffstat (limited to 'compiler/rustc_lint/src')
| -rw-r--r-- | compiler/rustc_lint/src/unused.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/unused.rs b/compiler/rustc_lint/src/unused.rs index bf1f150fc3b..525079681ca 100644 --- a/compiler/rustc_lint/src/unused.rs +++ b/compiler/rustc_lint/src/unused.rs @@ -276,10 +276,10 @@ impl<'tcx> LateLintPass<'tcx> for UnusedResults { { let def_id = trait_ref.def_id; is_def_must_use(cx, def_id, span) + .map(|inner| MustUsePath::TraitObject(Box::new(inner))) } else { None } - .map(|inner| MustUsePath::TraitObject(Box::new(inner))) }), ty::Tuple(tys) => { let elem_exprs = if let hir::ExprKind::Tup(elem_exprs) = expr.kind { |
