From 5e1e07744820028877654c336a3b9fe057bf46f1 Mon Sep 17 00:00:00 2001 From: Harry Barber Date: Thu, 5 Nov 2020 19:07:52 +0000 Subject: [PATCH] Add clones to combinators --- tower/src/util/map_err.rs | 2 +- tower/src/util/map_ok.rs | 2 +- tower/src/util/try_with.rs | 2 +- tower/src/util/with.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tower/src/util/map_err.rs b/tower/src/util/map_err.rs index 038dd6c..f065b01 100644 --- a/tower/src/util/map_err.rs +++ b/tower/src/util/map_err.rs @@ -6,7 +6,7 @@ use tower_service::Service; /// Service returned by the [`map_err`] combinator. /// /// [`map_err`]: crate::util::ServiceExt::map_err -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct MapErr { inner: S, f: F, diff --git a/tower/src/util/map_ok.rs b/tower/src/util/map_ok.rs index a021fa5..95e3dcc 100644 --- a/tower/src/util/map_ok.rs +++ b/tower/src/util/map_ok.rs @@ -6,7 +6,7 @@ use tower_service::Service; /// Service returned by the [`map_ok`] combinator. /// /// [`map_ok`]: crate::util::ServiceExt::map_ok -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct MapOk { inner: S, f: F, diff --git a/tower/src/util/try_with.rs b/tower/src/util/try_with.rs index ba8468d..02fd79f 100644 --- a/tower/src/util/try_with.rs +++ b/tower/src/util/try_with.rs @@ -6,7 +6,7 @@ use tower_service::Service; /// Service returned by the [`try_with`] combinator. /// /// [`try_with`]: crate::util::ServiceExt::try_with -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct TryWith { inner: S, f: F, diff --git a/tower/src/util/with.rs b/tower/src/util/with.rs index cd0c508..e519546 100644 --- a/tower/src/util/with.rs +++ b/tower/src/util/with.rs @@ -5,7 +5,7 @@ use tower_service::Service; /// Service returned by the [`with`] combinator. /// /// [`with`]: crate::util::ServiceExt::with -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct With { inner: S, f: F,