Skip to content

Commit

Permalink
oh whoops it does need to be cloned in that case
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
hawkw committed Dec 28, 2020
1 parent 14a3229 commit 1e7283c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tower/src/util/map_err.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ where

#[inline]
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
self.inner.poll_ready(cx).map_err(self.f)
self.inner.poll_ready(cx).map_err(self.f.clone())
}

#[inline]
Expand Down

0 comments on commit 1e7283c

Please sign in to comment.