Skip to content

Commit 154cced

Browse files
author
Ahmed
committed
Fix clippy warnings
First modules are disabled for some reason and it is not clear why Second we replaced .map(Clone::clone) with .cloned() Last we removed uncessary .into_iter() Signed-off-by: Ahmed <>
1 parent 9839d72 commit 154cced

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/lib.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
clippy::checked_conversions,
1616
clippy::from_iter_instead_of_collect,
1717
clippy::missing_errors_doc,
18-
clippy::mod_module_files,
1918
clippy::implicit_saturating_sub,
2019
clippy::panic,
2120
clippy::panic_in_result_fn,
@@ -207,7 +206,7 @@ where
207206
U: Add<N>,
208207
Sum<U, N>: ArraySize,
209208
{
210-
self.into_iter().chain(other.into_iter()).collect()
209+
self.into_iter().chain(other).collect()
211210
}
212211

213212
/// Splits `self` at index `N` in two arrays.
@@ -766,7 +765,7 @@ where
766765

767766
#[inline]
768767
fn try_from(slice: &'a [T]) -> Result<Array<T, U>, TryFromSliceError> {
769-
<&'a Self>::try_from(slice).map(Clone::clone)
768+
<&'a Self>::try_from(slice).cloned()
770769
}
771770
}
772771

0 commit comments

Comments
 (0)