Skip to content

Commit cc38c1e

Browse files
committed
Add #[inline] to BTreeMap::new constructor
1 parent 1547c07 commit cc38c1e

File tree

1 file changed

+1
-0
lines changed
  • library/alloc/src/collections/btree

1 file changed

+1
-0
lines changed

library/alloc/src/collections/btree/map.rs

+1
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,7 @@ impl<K, V> BTreeMap<K, V> {
624624
/// ```
625625
#[stable(feature = "rust1", since = "1.0.0")]
626626
#[rustc_const_stable(feature = "const_btree_new", since = "1.66.0")]
627+
#[inline]
627628
#[must_use]
628629
pub const fn new() -> BTreeMap<K, V> {
629630
BTreeMap { root: None, length: 0, alloc: ManuallyDrop::new(Global), _marker: PhantomData }

0 commit comments

Comments
 (0)