Implement delay for pop widget 🎉

This commit is contained in:
Héctor Ramón Jiménez 2025-02-19 07:21:09 +01:00
parent 42f6018487
commit ffc412d6b7
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 50 additions and 39 deletions

View file

@ -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)
}
}