Constify LinkedList new function

This commit is contained in:
GrayJack 2019-08-18 07:13:33 -03:00
parent ef1ecbefb8
commit e0f73052a9

View file

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