Skip to content

Commit

Permalink
'0517'
Browse files Browse the repository at this point in the history
  • Loading branch information
peamaeq committed May 18, 2022
1 parent dc6a7c4 commit 2c0c81a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -884,10 +884,10 @@ impl<K, V, S> Drop for LruCache<K, V, S> {
});
// We rebox the head/tail, and because these are maybe-uninit
// they do not have the absent k/v dropped.
unsafe {
let _head = *Box::from_raw(self.head);
let _tail = *Box::from_raw(self.tail);
}

let _head = unsafe { *Box::from_raw(self.head) };
let _tail = unsafe { *Box::from_raw(self.tail) };

}
}

Expand Down

0 comments on commit 2c0c81a

Please sign in to comment.