From 4e55e2b6510f5d55b5edfd48d3009a8cf2aaa03c Mon Sep 17 00:00:00 2001 From: edef Date: Fri, 16 Sep 2016 04:57:56 -0400 Subject: [PATCH] Use PhantomData-of-tuple instead of tuple-of-PhantomData --- src/generator.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/generator.rs b/src/generator.rs index 6870c29..c0d3418 100644 --- a/src/generator.rs +++ b/src/generator.rs @@ -85,7 +85,7 @@ pub struct Generator { stack: Stack, stack_id: debug::StackId, stack_ptr: arch::StackPointer, - phantom: (PhantomData<*const Input>, PhantomData<*const Output>) + phantom: PhantomData<(*const Input, *const Output)> } impl Generator @@ -135,7 +135,7 @@ impl Generator stack: stack, stack_id: stack_id, stack_ptr: stack_ptr, - phantom: (PhantomData, PhantomData) + phantom: PhantomData } } @@ -188,7 +188,7 @@ impl Generator #[derive(Debug)] pub struct Yielder { stack_ptr: Cell, - phantom: (PhantomData<*const Input>, PhantomData<*const Output>) + phantom: PhantomData<(*const Input, *const Output)> } impl Yielder @@ -196,7 +196,7 @@ impl Yielder fn new(stack_ptr: StackPointer) -> Yielder { Yielder { stack_ptr: Cell::new(stack_ptr), - phantom: (PhantomData, PhantomData) + phantom: PhantomData } }