Skip to content

Commit

Permalink
Drop unneeded Send/Sync bound from AssertUnmoved
Browse files Browse the repository at this point in the history
Co-authored-by: Nemo157 <wim@nemo157.com>
  • Loading branch information
2 people authored and cramertj committed May 8, 2020
1 parent 4b930bb commit 5b91728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions futures-test/src/future/assert_unmoved.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ pub struct AssertUnmoved<Fut> {

// Safety: having a raw pointer in a struct makes it `!Send`, however the
// pointer is never dereferenced so this is safe.
unsafe impl<Fut: Sync + Send> Send for AssertUnmoved<Fut> {}
unsafe impl<Fut: Sync + Send> Sync for AssertUnmoved<Fut> {}
unsafe impl<Fut: Send> Send for AssertUnmoved<Fut> {}
unsafe impl<Fut: Sync> Sync for AssertUnmoved<Fut> {}

impl<Fut> AssertUnmoved<Fut> {
unsafe_pinned!(future: Fut);
Expand Down

0 comments on commit 5b91728

Please sign in to comment.