Fix the variance of Input/Output

This commit is contained in:
edef 2016-09-16 04:59:47 -04:00
parent 22b16732f7
commit adb29eade7
1 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ pub struct Generator<Input: Send, Output: Send, Stack: stack::Stack> {
stack: Stack,
stack_id: debug::StackId,
stack_ptr: arch::StackPointer,
phantom: PhantomData<(*const Input, *const Output)>
phantom: PhantomData<(*mut Input, *const Output)>
}
impl<Input, Output, Stack> Generator<Input, Output, Stack>
@ -188,7 +188,7 @@ impl<Input, Output, Stack> Generator<Input, Output, Stack>
#[derive(Debug)]
pub struct Yielder<Input: Send, Output: Send> {
stack_ptr: Cell<StackPointer>,
phantom: PhantomData<(*const Input, *const Output)>
phantom: PhantomData<(*const Input, *mut Output)>
}
impl<Input, Output> Yielder<Input, Output>