From 6c25becd3f50d06e3cf567295025adf010b7ae5a Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Thu, 1 Nov 2018 11:03:03 -0700 Subject: [PATCH] impl Clone for TakeItem and TakeItemService --- src/stream.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/stream.rs b/src/stream.rs index bee5ec64c..5b08f4415 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -103,6 +103,12 @@ impl TakeItem { } } +impl Clone for TakeItem { + fn clone(&self) -> TakeItem { + TakeItem { _t: PhantomData } + } +} + impl NewService for TakeItem { type Request = T; type Response = (Option, T); @@ -121,6 +127,12 @@ pub struct TakeItemService { _t: PhantomData, } +impl Clone for TakeItemService { + fn clone(&self) -> TakeItemService { + TakeItemService { _t: PhantomData } + } +} + impl Service for TakeItemService { type Request = T; type Response = (Option, T);