We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd48e2b commit 08af473Copy full SHA for 08af473
src/lib.rs
@@ -204,7 +204,7 @@ where
204
U: Add<N>,
205
Sum<U, N>: ArraySize,
206
{
207
- self.into_iter().chain(other.into_iter()).collect()
+ self.into_iter().chain(other).collect()
208
}
209
210
/// Splits `self` at index `N` in two arrays.
@@ -763,7 +763,7 @@ where
763
764
#[inline]
765
fn try_from(slice: &'a [T]) -> Result<Array<T, U>, TryFromSliceError> {
766
- <&'a Self>::try_from(slice).map(Clone::clone)
+ <&'a Self>::try_from(slice).cloned()
767
768
769
0 commit comments