Constify LinkedList new function
This commit is contained in:
parent
ef1ecbefb8
commit
e0f73052a9
1 changed files with 1 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ impl<T> LinkedList<T> {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn new() -> Self {
|
||||
pub const fn new() -> Self {
|
||||
LinkedList {
|
||||
head: None,
|
||||
tail: None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue