Skip to content

Commit

Permalink
🐛 fix generator send bound (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xudong-Huang committed Dec 10, 2020
1 parent 628d0dc commit 5b499b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gen_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 24,7 @@ pub struct Generator<'a, A, T> {
gen: StackBox<GeneratorImpl<'a, A, T>>,
}

unsafe impl<A, T> Send for Generator<'static, A, T> {}
unsafe impl<A: Send, T: Send> Send for Generator<'static, A, T> {}

impl<'a, A, T> Generator<'a, A, T> {
/// Constructs a Generator from a raw pointer.
Expand Down

0 comments on commit 5b499b3

Please sign in to comment.