From 9697fd9c25afd4d4a081fc4ad030c9b37d9b8113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Dantas?= Date: Sun, 10 Nov 2019 12:46:38 -0300 Subject: [PATCH] Remove unnecessary parens around types --- src/dimension/dynindeximpl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dimension/dynindeximpl.rs b/src/dimension/dynindeximpl.rs index 04dfe3aa5..76087aa52 100644 --- a/src/dimension/dynindeximpl.rs +++ b/src/dimension/dynindeximpl.rs @@ -16,7 +16,7 @@ impl Deref for IxDynRepr { fn deref(&self) -> &[T] { match *self { IxDynRepr::Inline(len, ref ar) => { - debug_assert!(len as (usize) <= ar.len()); + debug_assert!(len as usize <= ar.len()); unsafe { ar.get_unchecked(..len as usize) } } IxDynRepr::Alloc(ref ar) => &*ar, @@ -28,7 +28,7 @@ impl DerefMut for IxDynRepr { fn deref_mut(&mut self) -> &mut [T] { match *self { IxDynRepr::Inline(len, ref mut ar) => { - debug_assert!(len as (usize) <= ar.len()); + debug_assert!(len as usize <= ar.len()); unsafe { ar.get_unchecked_mut(..len as usize) } } IxDynRepr::Alloc(ref mut ar) => &mut *ar,