Make Vec::new const
This commit is contained in:
parent
25749ad66d
commit
256096da9e
4 changed files with 34 additions and 4 deletions
|
@ -324,7 +324,7 @@ impl<T> Vec<T> {
|
|||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn new() -> Vec<T> {
|
||||
Vec {
|
||||
buf: RawVec::new(),
|
||||
buf: RawVec::empty(),
|
||||
len: 0,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue