Use a more semantically correct PhantomData field in Generator.

pull/1/head
whitequark 2016-08-11 04:06:30 +00:00 committed by edef
parent 302ceef10a
commit 308df32ac2
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ pub enum State {
pub struct Generator<Item: Send, Stack: stack::Stack> { pub struct Generator<Item: Send, Stack: stack::Stack> {
state: State, state: State,
context: context::Context<Stack>, context: context::Context<Stack>,
phantom: PhantomData<Item> phantom: PhantomData<*const Item>
} }
impl<Item, Stack> Generator<Item, Stack> impl<Item, Stack> Generator<Item, Stack>