Skip to content

Commit 201b1e9

Browse files
committed
Add #[inline] on insert_from_slice to reduce code size
1 parent f5bd2af commit 201b1e9

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)