From bf3b8c4f0f031579984be311654e2e8d6044af9a Mon Sep 17 00:00:00 2001 From: bluss Date: Fri, 30 Nov 2018 18:49:28 +0100 Subject: [PATCH] FIX: Unused code warning in array trait --- src/array.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/array.rs b/src/array.rs index 3d77b4a..8d043e4 100644 --- a/src/array.rs +++ b/src/array.rs @@ -48,7 +48,7 @@ impl Index for () { #[inline(always)] fn to_usize(self) -> usize { 0 } #[inline(always)] - fn from(ix: usize) -> Self { () } + fn from(_ix: usize) -> Self { () } } impl Index for bool {