From 308df32ac2de98491de1c153c40bcdd648ce15ff Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 11 Aug 2016 04:06:30 +0000 Subject: [PATCH] Use a more semantically correct PhantomData field in Generator. --- src/generator.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generator.rs b/src/generator.rs index a85cf31..46ac180 100644 --- a/src/generator.rs +++ b/src/generator.rs @@ -61,7 +61,7 @@ pub enum State { pub struct Generator { state: State, context: context::Context, - phantom: PhantomData + phantom: PhantomData<*const Item> } impl Generator