Skip to content

Commit 5d060d1

Browse files
authored
Merge pull request #312 from sffc/insert-inline
Annotate SmallVec::insert_from_slice with `#[inline]`
2 parents f5bd2af + 201b1e9 commit 5d060d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,6 +1758,7 @@ where
17581758
/// elements toward the back.
17591759
///
17601760
/// For slices of `Copy` types, this is more efficient than `insert`.
1761+
#[inline]
17611762
pub fn insert_from_slice(&mut self, index: usize, slice: &[A::Item]) {
17621763
self.reserve(slice.len());
17631764

0 commit comments

Comments
 (0)