diff options
Diffstat (limited to 'src/util/linked_list.rs')
-rw-r--r-- | src/util/linked_list.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/linked_list.rs b/src/util/linked_list.rs index 9698f72..b46bd6d 100644 --- a/src/util/linked_list.rs +++ b/src/util/linked_list.rs @@ -126,7 +126,7 @@ impl<L: Link> LinkedList<L, L::Target> { pub(crate) fn push_front(&mut self, val: L::Handle) { // The value should not be dropped, it is being inserted into the list let val = ManuallyDrop::new(val); - let ptr = L::as_raw(&*val); + let ptr = L::as_raw(&val); assert_ne!(self.head, Some(ptr)); unsafe { L::pointers(ptr).as_mut().set_next(self.head); |