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` --- 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 c9105bc0..6a77334c 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 Fn(T) -> A + 'static + MaybeSend + Sync, + f: impl FnOnce(T) -> A + 'static + MaybeSend + Sync, ) -> Action where T: 'static, -- cgit