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/clipboard.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'native/src/clipboard.rs') diff --git a/native/src/clipboard.rs b/native/src/clipboard.rs index 6a77334c..c9105bc0 100644 --- a/native/src/clipboard.rs +++ b/native/src/clipboard.rs @@ -30,7 +30,7 @@ impl Clipboard for Null { /// [`Command`]: crate::Command pub enum Action { /// Read the clipboard and produce `T` with the result. - Read(Box) -> T>), + Read(Box) -> T>), /// Write the given contents to the clipboard. Write(String), @@ -40,7 +40,7 @@ impl Action { /// Maps the output of a clipboard [`Action`] using the provided closure. pub fn map( self, - f: impl FnOnce(T) -> A + 'static + MaybeSend + Sync, + f: impl Fn(T) -> A + 'static + MaybeSend + Sync, ) -> Action where T: 'static, -- cgit