From 23229e00f608585bf2d623709a4240296721777d Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 17 Aug 2022 15:54:31 +0200 Subject: Use `FnOnce` in `Command::perform` ... and revert `FnMut` usage. --- 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 0b931125..05c3a1d0 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, mut f: impl FnMut(T) -> A) -> Command + pub fn map(self, f: impl Fn(T) -> A) -> Command where T: 'static, { -- cgit