diff options
| author | GrayJack <gr41.j4ck@gmail.com> | 2019-08-18 07:13:33 -0300 |
|---|---|---|
| committer | GrayJack <gr41.j4ck@gmail.com> | 2019-08-18 07:13:33 -0300 |
| commit | e0f73052a93eee54400b7d4f788181b28bb54b4d (patch) | |
| tree | 6be4feb086abf96d22b5fce84afeb06353a723ed /src/liballoc | |
| parent | ef1ecbefb8719e408150738664d443a73f757ffd (diff) | |
| download | rust-e0f73052a93eee54400b7d4f788181b28bb54b4d.tar.gz rust-e0f73052a93eee54400b7d4f788181b28bb54b4d.zip | |
Constify LinkedList new function
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/collections/linked_list.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<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, |
