Skip to content

Commit 8878cd7

Browse files
committed
Make shift_insert available for inlining like other Map methods
1 parent 352b7ab commit 8878cd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/map.rs

+1
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ impl Map<String, Value> {
135135
/// position, the value is updated, and the old value is returned.
136136
#[cfg(feature = "preserve_order")]
137137
#[cfg_attr(docsrs, doc(cfg(feature = "preserve_order")))]
138+
#[inline]
138139
pub fn shift_insert(&mut self, index: usize, k: String, v: Value) -> Option<Value> {
139140
self.map.shift_insert(index, k, v)
140141
}

0 commit comments

Comments
 (0)