Skip to content

Commit

Permalink
Constify LinkedList new function
Browse files Browse the repository at this point in the history
  • Loading branch information
GrayJack committed Aug 18, 2019
1 parent ef1ecbe commit e0f7305
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/collections/linked_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e0f7305

Please sign in to comment.