Skip to content

Commit c791919

Browse files
committed
Require Send for underlying types to fix #1
1 parent 50bd80f commit c791919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl<T, U> Clone for Future<T, U> {
162162
Future(self.0.clone())
163163
}
164164
}
165-
unsafe impl<T, U> Send for Future<T, U> {}
165+
unsafe impl<T: Send, U: Send> Send for Future<T, U> {}
166166
unsafe impl<T, U> Sync for Future<T, U> {}
167167

168168

0 commit comments

Comments
 (0)