Skip to content

Commit 349d5f5

Browse files
author
Sven Bartscher
committed
Make BTreeSet::new_in const
1 parent ab0ad55 commit 349d5f5

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

alloc/src/collections/btree/set.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ impl<T, A: Allocator + Clone> BTreeSet<T, A> {
358358
/// let mut set: BTreeSet<i32> = BTreeSet::new_in(Global);
359359
/// ```
360360
#[unstable(feature = "btreemap_alloc", issue = "32838")]
361-
pub fn new_in(alloc: A) -> BTreeSet<T, A> {
361+
pub const fn new_in(alloc: A) -> BTreeSet<T, A> {
362362
BTreeSet { map: BTreeMap::new_in(alloc) }
363363
}
364364

0 commit comments

Comments
 (0)