Skip to content

Commit

Permalink
Fix the variance of Input/Output
Browse files Browse the repository at this point in the history
  • Loading branch information
edef1c committed Sep 16, 2016
1 parent 6fba46d commit c9b43e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub struct Generator<'a, Input: Send + 'a, Output: Send + 'a, Stack: stack::Stac
stack: Stack,
stack_id: debug::StackId,
stack_ptr: arch::StackPointer,
phantom: PhantomData<(&'a mut (), *const Input, *const Output)>
phantom: PhantomData<(&'a (), *mut Input, *const Output)>
}

impl<'a, Input, Output, Stack> Generator<'a, Input, Output, Stack>
Expand Down Expand Up @@ -188,7 +188,7 @@ impl<'a, Input, Output, Stack> Generator<'a, 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>
Expand Down

0 comments on commit c9b43e4

Please sign in to comment.