Skip to content

Commit 178d44c

Browse files
author
Robert Forsman
committed
that cast was unnecessary
1 parent c8e6dcc commit 178d44c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/sorted_linked_list.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@ macro_rules! impl_index_and_const_new {
180180

181181
impl_index_and_const_new!(LinkedIndexU8, u8, new_u8, { u8::MAX as usize - 1 });
182182
impl_index_and_const_new!(LinkedIndexU16, u16, new_u16, { u16::MAX as usize - 1 });
183-
impl_index_and_const_new!(LinkedIndexUsize, usize, new_usize, {
184-
usize::MAX as usize - 1
185-
});
183+
impl_index_and_const_new!(LinkedIndexUsize, usize, new_usize, { usize::MAX - 1 });
186184

187185
impl<T, Idx, K, const N: usize> SortedLinkedList<T, Idx, K, N>
188186
where

0 commit comments

Comments
 (0)