Skip to content

Commit

Permalink
Require Send for underlying types to fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
KizzyCode committed Dec 8, 2020
1 parent 50bd80f commit c791919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl<T, U> Clone for Future<T, U> {
Future(self.0.clone())
}
}
unsafe impl<T, U> Send for Future<T, U> {}
unsafe impl<T: Send, U: Send> Send for Future<T, U> {}
unsafe impl<T, U> Sync for Future<T, U> {}


Expand Down

0 comments on commit c791919

Please sign in to comment.