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. --- native/src/command.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'native/src/command.rs') diff --git a/native/src/command.rs b/native/src/command.rs index 3571efc4..89ee7375 100644 --- a/native/src/command.rs +++ b/native/src/command.rs @@ -56,7 +56,7 @@ impl Command { /// Applies a transformation to the result of a [`Command`]. pub fn map( self, - f: impl FnMut(T) -> A + 'static + MaybeSend + Sync + Clone, + f: impl Fn(T) -> A + 'static + MaybeSend + Sync + Clone, ) -> Command where T: 'static, -- cgit