diff options
| author | main() <main@ehvag.de> | 2020-05-04 16:10:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-04 16:10:59 +0200 |
| commit | c5cdf7fe920c8cb3b60f5a6e257f6cdfb51102d3 (patch) | |
| tree | b994a76a19189d555e36f2f5c967142fa00c7772 /src | |
| parent | 1593e2b7df05da71162b9ad0e3f12d577aec3131 (diff) | |
| download | rust-c5cdf7fe920c8cb3b60f5a6e257f6cdfb51102d3.tar.gz rust-c5cdf7fe920c8cb3b60f5a6e257f6cdfb51102d3.zip | |
whoops
Diffstat (limited to 'src')
| -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 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); |
