Skip to content

Commit c9b43e4

Browse files
committed
Fix the variance of Input/Output
1 parent 6fba46d commit c9b43e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/generator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ pub struct Generator<'a, Input: Send + 'a, Output: Send + 'a, Stack: stack::Stac
8585
stack: Stack,
8686
stack_id: debug::StackId,
8787
stack_ptr: arch::StackPointer,
88-
phantom: PhantomData<(&'a mut (), *const Input, *const Output)>
88+
phantom: PhantomData<(&'a (), *mut Input, *const Output)>
8989
}
9090

9191
impl<'a, Input, Output, Stack> Generator<'a, Input, Output, Stack>
@@ -188,7 +188,7 @@ impl<'a, Input, Output, Stack> Generator<'a, Input, Output, Stack>
188188
#[derive(Debug)]
189189
pub struct Yielder<Input: Send, Output: Send> {
190190
stack_ptr: Cell<StackPointer>,
191-
phantom: PhantomData<(*const Input, *const Output)>
191+
phantom: PhantomData<(*const Input, *mut Output)>
192192
}
193193

194194
impl<Input, Output> Yielder<Input, Output>

0 commit comments

Comments
 (0)