From f21d1209aa576a3e597c100fa56afe554dc2babd Mon Sep 17 00:00:00 2001 From: 无限UCW Date: Fri, 12 Aug 2022 01:57:05 +0800 Subject: Relax `Fn` trait bounds in `Command` & `Action` --- futures/src/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'futures/src/command.rs') diff --git a/futures/src/command.rs b/futures/src/command.rs index 05c3a1d0..0b931125 100644 --- a/futures/src/command.rs +++ b/futures/src/command.rs @@ -41,7 +41,7 @@ impl Command { } /// Applies a transformation to the result of a [`Command`]. - pub fn map(self, f: impl Fn(T) -> A) -> Command + pub fn map(self, mut f: impl FnMut(T) -> A) -> Command where T: 'static, { -- cgit