Skip to content

Commit 08af473

Browse files
committed
Fix clippy warnings
1 parent dd48e2b commit 08af473

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ where
204204
U: Add<N>,
205205
Sum<U, N>: ArraySize,
206206
{
207-
self.into_iter().chain(other.into_iter()).collect()
207+
self.into_iter().chain(other).collect()
208208
}
209209

210210
/// Splits `self` at index `N` in two arrays.
@@ -763,7 +763,7 @@ where
763763

764764
#[inline]
765765
fn try_from(slice: &'a [T]) -> Result<Array<T, U>, TryFromSliceError> {
766-
<&'a Self>::try_from(slice).map(Clone::clone)
766+
<&'a Self>::try_from(slice).cloned()
767767
}
768768
}
769769

0 commit comments

Comments
 (0)