Skip to content

Commit 2740ef2

Browse files
CoAlloc: minor cleanup
1 parent 36345a4 commit 2740ef2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,9 +446,7 @@ impl<T> Vec<T> {
446446
#[stable(feature = "rust1", since = "1.0.0")]
447447
#[must_use]
448448
pub const fn new() -> Self {
449-
#[allow(unused_braces)]
450-
Vec::<T, Global, { CO_ALLOC_PREF_DEFAULT!() }>::new_co()
451-
//Self::new_co()
449+
Self::new_co()
452450
}
453451

454452
/// Constructs a new, empty `Vec<T>` with at least the specified capacity.

0 commit comments

Comments
 (0)