Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 7124d82

Browse files
committed
Fix function signature
1 parent 307d854 commit 7124d82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/methods/slice_as_bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use rustc_lint::LateContext;
88
use super::SLICE_AS_BYTES;
99

1010
pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'_>) {
11-
if let ExprKind::Index(indexed, index) = recv.kind
11+
if let ExprKind::Index(indexed, index, _) = recv.kind
1212
&& is_range_literal(index)
1313
{
1414
let ty = cx.typeck_results().expr_ty(indexed).peel_refs();

0 commit comments

Comments
 (0)