We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 307d854 commit 7124d82Copy full SHA for 7124d82
clippy_lints/src/methods/slice_as_bytes.rs
@@ -8,7 +8,7 @@ use rustc_lint::LateContext;
8
use super::SLICE_AS_BYTES;
9
10
pub(super) fn check(cx: &LateContext<'_>, expr: &Expr<'_>, recv: &Expr<'_>) {
11
- if let ExprKind::Index(indexed, index) = recv.kind
+ if let ExprKind::Index(indexed, index, _) = recv.kind
12
&& is_range_literal(index)
13
{
14
let ty = cx.typeck_results().expr_ty(indexed).peel_refs();
0 commit comments