Skip to content

Commit 3b9a8b6

Browse files
viniciusdLukeMathWalker
authored andcommitted
Remove unnecessary parens around types (#750)
[LINT]: Address rust-lang/rust#64169
1 parent 1a07258 commit 3b9a8b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dimension/dynindeximpl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ impl<T> Deref for IxDynRepr<T> {
1616
fn deref(&self) -> &[T] {
1717
match *self {
1818
IxDynRepr::Inline(len, ref ar) => {
19-
debug_assert!(len as (usize) <= ar.len());
19+
debug_assert!(len as usize <= ar.len());
2020
unsafe { ar.get_unchecked(..len as usize) }
2121
}
2222
IxDynRepr::Alloc(ref ar) => &*ar,
@@ -28,7 +28,7 @@ impl<T> DerefMut for IxDynRepr<T> {
2828
fn deref_mut(&mut self) -> &mut [T] {
2929
match *self {
3030
IxDynRepr::Inline(len, ref mut ar) => {
31-
debug_assert!(len as (usize) <= ar.len());
31+
debug_assert!(len as usize <= ar.len());
3232
unsafe { ar.get_unchecked_mut(..len as usize) }
3333
}
3434
IxDynRepr::Alloc(ref mut ar) => &mut *ar,

0 commit comments

Comments
 (0)