forked from M-Labs/libfringe
Use a more semantically correct PhantomData field in Generator.
This commit is contained in:
parent
302ceef10a
commit
308df32ac2
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue