Skip to content

Commit c5cdf7f

Browse files
authored
whoops
1 parent 1593e2b commit c5cdf7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/collections/linked_list.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,7 @@ impl<'a, T> CursorMut<'a, T> {
15051505
/// is removed and `None` is returned.
15061506
#[unstable(feature = "linked_list_cursors", issue = "58533")]
15071507
pub fn remove_current_as_list(&mut self) -> Option<LinkedList<T>> {
1508-
let unlinked_node = self.current?;
1508+
let mut unlinked_node = self.current?;
15091509
unsafe {
15101510
self.current = unlinked_node.as_ref().next;
15111511
self.list.unlink_node(unlinked_node);

0 commit comments

Comments
 (0)