Skip to content

Commit

Permalink
Mark from_iter as inline
Browse files Browse the repository at this point in the history
  • Loading branch information
novacrazy committed Jul 3, 2024
1 parent 13e510a commit da4bd7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ impl<T, N: ArrayLength> FromIterator<T> for GenericArray<T, N> {
/// Will panic if the number of elements is not exactly the array length.
///
/// See [`GenericArray::try_from_iter]` for a fallible alternative.
#[inline]
fn from_iter<I>(iter: I) -> GenericArray<T, N>
where
I: IntoIterator<Item = T>,
Expand Down

0 comments on commit da4bd7e

Please sign in to comment.