about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authormain() <main@ehvag.de>2020-05-04 16:10:59 +0200
committerGitHub <noreply@github.com>2020-05-04 16:10:59 +0200
commitc5cdf7fe920c8cb3b60f5a6e257f6cdfb51102d3 (patch)
treeb994a76a19189d555e36f2f5c967142fa00c7772 /src
parent1593e2b7df05da71162b9ad0e3f12d577aec3131 (diff)
downloadrust-c5cdf7fe920c8cb3b60f5a6e257f6cdfb51102d3.tar.gz
rust-c5cdf7fe920c8cb3b60f5a6e257f6cdfb51102d3.zip
whoops
Diffstat (limited to 'src')
-rw-r--r--src/liballoc/collections/linked_list.rs2
1 files changed, 1 insertions, 1 deletions
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<LinkedList<T>> {
-        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);