From 0525da70bf0bd3dfaab8ee25258562ec2bc40913 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Wed, 5 Sep 2018 19:27:52 -0700 Subject: [PATCH] add Clone impl for FromErr combinator --- src/service/from_err.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/service/from_err.rs b/src/service/from_err.rs index 613d6041..ef5619db 100644 --- a/src/service/from_err.rs +++ b/src/service/from_err.rs @@ -20,6 +20,19 @@ impl> FromErr { } } +impl Clone for FromErr +where + A: Service + Clone, + E: From, +{ + fn clone(&self) -> Self { + FromErr { + service: self.service.clone(), + f: PhantomData, + } + } +} + impl Service for FromErr where A: Service,