Skip to content

Commit

Permalink
style: remove todo
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamTakeshi authored and ibraheemdev committed Nov 12, 2024
1 parent 37b6733 commit 2d5aa2c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ pub struct HashSet<K, S = RandomState> {
raw: raw::HashMap<K, (), S>,
}

// Safety: We only ever hand out &K/V through shared references to the map,
// Safety: We only ever hand out &K through shared references to the map,
// so normal Send/Sync rules apply. We never expose owned or mutable references
// to keys or values.
// TODO
unsafe impl<K: Send, S: Send> Send for HashSet<K, S> {}
unsafe impl<K: Sync, S: Sync> Sync for HashSet<K, S> {}

Expand Down

0 comments on commit 2d5aa2c

Please sign in to comment.