1
0
Fork 0

Use a more semantically correct PhantomData field in Generator.

This commit is contained in:
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> {
state: State,
context: context::Context<Stack>,
phantom: PhantomData<Item>
phantom: PhantomData<*const Item>
}
impl<Item, Stack> Generator<Item, Stack>