fmt clippy
This commit is contained in:
parent
839ad09689
commit
c9342d0121
41 changed files with 2187 additions and 1488 deletions
|
@ -42,8 +42,7 @@ impl LateLintPass for ArrayIndexing {
|
|||
let index = eval_const_expr_partial(cx.tcx, &index, ExprTypeChecked, None);
|
||||
if let Ok(ConstVal::Uint(index)) = index {
|
||||
if size as u64 <= index {
|
||||
span_lint(cx, OUT_OF_BOUNDS_INDEXING, e.span,
|
||||
"const index-expr is out of bounds");
|
||||
span_lint(cx, OUT_OF_BOUNDS_INDEXING, e.span, "const index-expr is out of bounds");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue