summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-19 07:21:09 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2025-02-19 07:23:50 +0100
commitffc412d6b7f8009c783715c021fc36780f26db36 (patch)
tree2d2f1df7b26f9102a1f275ec05a66ad0ea2829ad /core
parent42f6018487e88eb3988e8650e51ba6e369327b64 (diff)
downloadiced-ffc412d6b7f8009c783715c021fc36780f26db36.tar.gz
iced-ffc412d6b7f8009c783715c021fc36780f26db36.tar.bz2
iced-ffc412d6b7f8009c783715c021fc36780f26db36.zip
Implement `delay` for `pop` widget :tada:
Diffstat (limited to 'core')
-rw-r--r--core/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/lib.rs b/core/src/lib.rs
index 03cc0632..e75ef2a7 100644
--- a/core/src/lib.rs
+++ b/core/src/lib.rs
@@ -144,9 +144,9 @@ impl<F, A, B, O> Function<A, B, O> for F
where
F: Fn(A, B) -> O,
Self: Sized,
- A: Copy,
+ A: Clone,
{
fn with(self, prefix: A) -> impl Fn(B) -> O {
- move |result| self(prefix, result)
+ move |result| self(prefix.clone(), result)
}
}