Skip to content

Commit 908d3e9

Browse files
aneubeckjorendorff
andauthored
Update crates/hash-sorted-map/src/hash_sorted_map.rs
Co-authored-by: Jason Orendorff <jorendorff@github.com>
1 parent f36c8df commit 908d3e9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

crates/hash-sorted-map/src/hash_sorted_map.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,8 @@ pub struct OccupiedEntry<'a, V> {
425425
/// View into a vacant entry. Holds the borrow of the map plus the hash, key,
426426
/// and pre-computed insertion slot.
427427
pub struct VacantEntry<'a, K, V, S> {
428-
map: &'a mut HashSortedMap<K, V, S>,
428+
phantom: PhantomData<&'a mut HashSortedMap<K, V, S>>,
429+
map: *mut HashSortedMap<K, V, S>,
429430
hash: u64,
430431
key: K,
431432
insertion: Insertion<K, V>,

0 commit comments

Comments
 (0)