From 8878cd7c042a5f94ae4ee9889cbcbd12cc5ce334 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 30 Jun 2024 11:15:08 -0700 Subject: [PATCH] Make shift_insert available for inlining like other Map methods --- src/map.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/map.rs b/src/map.rs index b36806e06..3ffff15f8 100644 --- a/src/map.rs +++ b/src/map.rs @@ -135,6 +135,7 @@ impl Map { /// 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 { self.map.shift_insert(index, k, v) }