Skip to content

Commit 8364740

Browse files
committed
Need to prefix variable that isn't used when debug assertions are turned off
1 parent f35e035 commit 8364740

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/arraytraits.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ where
4343
I: NdIndex<D>,
4444
T: AsRef<LayoutRef<A, D>> + ?Sized,
4545
{
46-
let layout_ref = _a.as_ref();
47-
debug_bounds_check_ref!(layout_ref, *_index);
46+
let _layout_ref = _a.as_ref();
47+
debug_bounds_check_ref!(_layout_ref, *_index);
4848
}
4949

5050
/// Access the element at **index**.

0 commit comments

Comments
 (0)