1
Fork 0

use const trick

This commit is contained in:
Mark Mansi 2018-04-29 17:13:49 -05:00
parent 0212e0230a
commit e5280e452f
2 changed files with 7 additions and 24 deletions

View file

@ -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,
}
}