From c5cdf7fe920c8cb3b60f5a6e257f6cdfb51102d3 Mon Sep 17 00:00:00 2001 From: "main()" Date: Mon, 4 May 2020 16:10:59 +0200 Subject: [PATCH] whoops --- src/liballoc/collections/linked_list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liballoc/collections/linked_list.rs b/src/liballoc/collections/linked_list.rs index 952e5317840..cc0f07b8227 100644 --- a/src/liballoc/collections/linked_list.rs +++ b/src/liballoc/collections/linked_list.rs @@ -1505,7 +1505,7 @@ impl<'a, T> CursorMut<'a, T> { /// is removed and `None` is returned. #[unstable(feature = "linked_list_cursors", issue = "58533")] pub fn remove_current_as_list(&mut self) -> Option> { - let unlinked_node = self.current?; + let mut unlinked_node = self.current?; unsafe { self.current = unlinked_node.as_ref().next; self.list.unlink_node(unlinked_node);