summaryrefslogtreecommitdiffstats
path: root/native/src/clipboard.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--native/src/clipboard.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/clipboard.rs b/native/src/clipboard.rs
index 62dfc130..4d59d960 100644
--- a/native/src/clipboard.rs
+++ b/native/src/clipboard.rs
@@ -24,7 +24,7 @@ impl Clipboard for Null {
pub enum Action<T> {
Read(Box<dyn Fn(Option<String>) -> T>),
- Write(Box<dyn Fn(String) -> T>),
+ Write(String),
}
impl<T> Action<T> {
@@ -34,7 +34,7 @@ impl<T> Action<T> {
{
match self {
Self::Read(o) => Action::Read(Box::new(move |s| f(o(s)))),
- Self::Write(o) => Action::Write(Box::new(move |s| f(o(s)))),
+ Self::Write(content) => Action::Write(content),
}
}
}