make Vec::new const :P
This commit is contained in:
parent
a2105b8e21
commit
20ef0e001a
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ impl<T> Vec<T> {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn new() -> Vec<T> {
|
||||
pub const fn new() -> Vec<T> {
|
||||
Vec {
|
||||
buf: RawVec::empty(),
|
||||
len: 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue