Skip to content

Commit

Permalink
Make shift_insert available for inlining like other Map methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 30, 2024
1 parent 352b7ab commit 8878cd7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ impl Map<String, Value> {
/// position, the value is updated, and the old value is returned.
#[cfg(feature = "preserve_order")]
#[cfg_attr(docsrs, doc(cfg(feature = "preserve_order")))]
#[inline]
pub fn shift_insert(&mut self, index: usize, k: String, v: Value) -> Option<Value> {
self.map.shift_insert(index, k, v)
}
Expand Down

0 comments on commit 8878cd7

Please sign in to comment.