about summary refs log tree commit diff
path: root/src/array_indexing.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-01-04 09:56:12 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-01-04 09:56:12 +0530
commitc9342d01213ca1663d2cdf23289bae024823ae6a (patch)
tree505829eeee2dc85b41f7e2aa7cc44df3d9862a9e /src/array_indexing.rs
parent839ad09689e417d1d9e84eb24c627226765f8322 (diff)
downloadrust-c9342d01213ca1663d2cdf23289bae024823ae6a.tar.gz
rust-c9342d01213ca1663d2cdf23289bae024823ae6a.zip
fmt clippy
Diffstat (limited to 'src/array_indexing.rs')
-rw-r--r--src/array_indexing.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/array_indexing.rs b/src/array_indexing.rs
index d72adac943f..cfa52f390d2 100644
--- a/src/array_indexing.rs
+++ b/src/array_indexing.rs
@@ -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");
                     }
                 }
             }