Skip to content

Commit

Permalink
Merge pull request #312 from sffc/insert-inline
Browse files Browse the repository at this point in the history
Annotate SmallVec::insert_from_slice with `#[inline]`
  • Loading branch information
Manishearth authored Aug 17, 2023
2 parents f5bd2af + 201b1e9 commit 5d060d1
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 @@ -1758,6 +1758,7 @@ where
/// elements toward the back.
///
/// For slices of `Copy` types, this is more efficient than `insert`.
#[inline]
pub fn insert_from_slice(&mut self, index: usize, slice: &[A::Item]) {
self.reserve(slice.len());

Expand Down

0 comments on commit 5d060d1

Please sign in to comment.