From e0f73052a93eee54400b7d4f788181b28bb54b4d Mon Sep 17 00:00:00 2001 From: GrayJack Date: Sun, 18 Aug 2019 07:13:33 -0300 Subject: Constify LinkedList new function --- src/liballoc/collections/linked_list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/liballoc') diff --git a/src/liballoc/collections/linked_list.rs b/src/liballoc/collections/linked_list.rs index a14a3fe9994..816a71f2557 100644 --- a/src/liballoc/collections/linked_list.rs +++ b/src/liballoc/collections/linked_list.rs @@ -276,7 +276,7 @@ impl LinkedList { /// ``` #[inline] #[stable(feature = "rust1", since = "1.0.0")] - pub fn new() -> Self { + pub const fn new() -> Self { LinkedList { head: None, tail: None, -- cgit 1.4.1-3-g733a5