Skip to content

Commit 5b91728

Browse files
ThomasdezeeuwNemo157
authored andcommitted
Drop unneeded Send/Sync bound from AssertUnmoved
Co-authored-by: Nemo157 <[email protected]>
1 parent 4b930bb commit 5b91728

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

futures-test/src/future/assert_unmoved.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ pub struct AssertUnmoved<Fut> {
1919

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

2525
impl<Fut> AssertUnmoved<Fut> {
2626
unsafe_pinned!(future: Fut);

0 commit comments

Comments
 (0)