Skip to content

Commit

Permalink
Add Send and Sync bounds for TreeFocus
Browse files Browse the repository at this point in the history
  • Loading branch information
ammaraskar authored and bodil committed Apr 29, 2022
1 parent 9c2726a commit 0b3a7b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vector/focus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,10 @@ impl<A> Clone for TreeFocus<A> {

#[allow(unsafe_code)]
#[cfg(threadsafe)]
unsafe impl<A> Send for TreeFocus<A> {}
unsafe impl<A: Send> Send for TreeFocus<A> {}
#[allow(unsafe_code)]
#[cfg(threadsafe)]
unsafe impl<A> Sync for TreeFocus<A> {}
unsafe impl<A: Sync> Sync for TreeFocus<A> {}

#[inline]
fn contains<A: Ord>(range: &Range<A>, index: &A) -> bool {
Expand Down

0 comments on commit 0b3a7b2

Please sign in to comment.