about summary refs log tree commit diff
path: root/clippy_lints/src/index_refutable_slice.rs
diff options
context:
space:
mode:
authorJules Bertholet <julesbertholet@quoi.xyz>2024-04-16 19:23:30 -0400
committerJules Bertholet <julesbertholet@quoi.xyz>2024-04-17 09:34:39 -0400
commit876d5f00a0515f60b23d4e111249d6340159fa8b (patch)
tree91238b857d7d628ca063b5c9580b03226143b314 /clippy_lints/src/index_refutable_slice.rs
parent432bce6583418964c89c061915278a698f56c105 (diff)
downloadrust-876d5f00a0515f60b23d4e111249d6340159fa8b.tar.gz
rust-876d5f00a0515f60b23d4e111249d6340159fa8b.zip
Rename `BindingAnnotation` to `BindingMode`
Diffstat (limited to 'clippy_lints/src/index_refutable_slice.rs')
-rw-r--r--clippy_lints/src/index_refutable_slice.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/index_refutable_slice.rs b/clippy_lints/src/index_refutable_slice.rs
index 6ddc8346511..799ec9d553d 100644
--- a/clippy_lints/src/index_refutable_slice.rs
+++ b/clippy_lints/src/index_refutable_slice.rs
@@ -94,7 +94,7 @@ fn find_slice_values(cx: &LateContext<'_>, pat: &hir::Pat<'_>) -> FxIndexMap<Hir
     pat.walk_always(|pat| {
         // We'll just ignore mut and ref mut for simplicity sake right now
         if let hir::PatKind::Binding(
-            hir::BindingAnnotation(by_ref, hir::Mutability::Not),
+            hir::BindingMode(by_ref, hir::Mutability::Not),
             value_hir_id,
             ident,
             sub_pat,