Skip to content

Commit

Permalink
fix send/sync
Browse files Browse the repository at this point in the history
  • Loading branch information
JieningYu committed Aug 9, 2023
1 parent 3275060 commit c8cddaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/collections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,8 @@ where
}
}

unsafe impl<T> Send for Caches<T> where T: Hash + Eq + ToOwned<Owned = T> {}
unsafe impl<T> Sync for Caches<T> where T: Hash + Eq + ToOwned<Owned = T> {}
unsafe impl<T> Send for Caches<T> where T: Hash + Eq + Send {}
unsafe impl<T> Sync for Caches<T> where T: Hash + Eq + Sync {}

#[cfg(test)]
mod tests_caches {
Expand Down

0 comments on commit c8cddaa

Please sign in to comment.