Skip to content

Commit

Permalink
Remove unnecessary parens around types (#750)
Browse files Browse the repository at this point in the history
[LINT]: Address rust-lang/rust#64169
  • Loading branch information
viniciusd authored and LukeMathWalker committed Nov 11, 2019
1 parent 1a07258 commit 3b9a8b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dimension/dynindeximpl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ impl<T> Deref for IxDynRepr<T> {
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,
Expand All @@ -28,7 +28,7 @@ impl<T> DerefMut for IxDynRepr<T> {
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,
Expand Down

0 comments on commit 3b9a8b6

Please sign in to comment.