Skip to content

Commit ede511e

Browse files
Minor
1 parent f70600c commit ede511e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ pub type DefVec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Al
432432
/// = always pack; u8::MAX = always cooperate (if `Global` supports it).
433433
/// @FIXME A `pub const` threshold.
434434
#[unstable(feature = "global_co_alloc_vec", issue = "none")]
435-
pub type WeVec<T, const weight: u8> = Vec<T, Global, { weight > 1 }>;
435+
pub type WeVec<T, const weight: u8> = Vec<T, Global, { weight > 127 }>;
436436

437437
////////////////////////////////////////////////////////////////////////////////
438438
// Inherent methods

library/std/src/sys/windows/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ where
204204
// incorrect size hints for some short paths:
205205
// https://github.com/dylni/normpath/issues/5
206206
let mut stack_buf: [MaybeUninit<u16>; 512] = MaybeUninit::uninit_array();
207+
// @FIXME Use CoVec?
207208
let mut heap_buf: Vec<MaybeUninit<u16>> = Vec::new();
208209
unsafe {
209210
let mut n = stack_buf.len();

0 commit comments

Comments
 (0)