use const trick
This commit is contained in:
parent
0212e0230a
commit
e5280e452f
2 changed files with 7 additions and 24 deletions
|
@ -325,7 +325,7 @@ impl<T> Vec<T> {
|
|||
#[rustc_const_unstable(feature = "const_vec_new")]
|
||||
pub const fn new() -> Vec<T> {
|
||||
Vec {
|
||||
buf: RawVec::empty(),
|
||||
buf: RawVec::new(),
|
||||
len: 0,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue