diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-13 14:34:47 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-05-13 16:55:58 -0400 |
| commit | 2701a4175fc5636c3b74ad268f587c100173b5c1 (patch) | |
| tree | 05f674d8501ee01e360a6baddf28fd6c2b602637 | |
| parent | 760fbdf64ed90e958b6da891c21683a4d4f0bbe2 (diff) | |
| download | rust-2701a4175fc5636c3b74ad268f587c100173b5c1.tar.gz rust-2701a4175fc5636c3b74ad268f587c100173b5c1.zip | |
Apply nits
| -rw-r--r-- | clippy_lints/src/needless_borrows_for_generic_args.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_lints/src/needless_borrows_for_generic_args.rs b/clippy_lints/src/needless_borrows_for_generic_args.rs index 8de5caf32b7..ae6cf992ef7 100644 --- a/clippy_lints/src/needless_borrows_for_generic_args.rs +++ b/clippy_lints/src/needless_borrows_for_generic_args.rs @@ -320,11 +320,11 @@ fn is_mixed_projection_predicate<'tcx>( && (term_param_ty.index as usize) < generics.parent_count { // The inner-most self type is a type parameter from the current function. - let mut projection_ty = projection_predicate.projection_term; + let mut projection_term = projection_predicate.projection_term; loop { - match *projection_ty.self_ty().kind() { + match *projection_term.self_ty().kind() { ty::Alias(ty::Projection, inner_projection_ty) => { - projection_ty = inner_projection_ty.into(); + projection_term = inner_projection_ty.into(); }, ty::Param(param_ty) => { return (param_ty.index as usize) >= generics.parent_count; |
