about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-05-13 14:34:47 -0400
committerMichael Goulet <michael@errs.io>2024-05-13 16:55:58 -0400
commitfa84018c2ef0aa35e46f11dce87f3e0410fae9a4 (patch)
tree82805a73ac639eb16f335902db412ce92d041dac /src
parent3bcdf3058ef3eaef5042661cf8301acfbcddce65 (diff)
downloadrust-fa84018c2ef0aa35e46f11dce87f3e0410fae9a4.tar.gz
rust-fa84018c2ef0aa35e46f11dce87f3e0410fae9a4.zip
Apply nits
Diffstat (limited to 'src')
-rw-r--r--src/tools/clippy/clippy_lints/src/needless_borrows_for_generic_args.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tools/clippy/clippy_lints/src/needless_borrows_for_generic_args.rs b/src/tools/clippy/clippy_lints/src/needless_borrows_for_generic_args.rs
index 8de5caf32b7..ae6cf992ef7 100644
--- a/src/tools/clippy/clippy_lints/src/needless_borrows_for_generic_args.rs
+++ b/src/tools/clippy/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;