summaryrefslogtreecommitdiffstats
path: root/lazy/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-01-12 04:44:14 +0100
committerLibravatar GitHub <noreply@github.com>2023-01-12 04:44:14 +0100
commit902131eb517de85e09f522932858af53fc6aea3e (patch)
treee4777ad00ba580dca912ff695f5244bf8e9017de /lazy/src/lib.rs
parentca337b880f82b3da264ac1626f973f8be29e95f4 (diff)
parent58bcc4404e0083276576299217fe6e3187d0ef14 (diff)
downloadiced-902131eb517de85e09f522932858af53fc6aea3e.tar.gz
iced-902131eb517de85e09f522932858af53fc6aea3e.tar.bz2
iced-902131eb517de85e09f522932858af53fc6aea3e.zip
Merge pull request #1646 from nicksenger/feat/dependency-in-lazy
Provide `&Dependency` to `Lazy` widget view fn
Diffstat (limited to '')
-rw-r--r--lazy/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lazy/src/lib.rs b/lazy/src/lib.rs
index f49fe4b6..41a28773 100644
--- a/lazy/src/lib.rs
+++ b/lazy/src/lib.rs
@@ -33,7 +33,7 @@ use std::hash::Hash;
pub fn lazy<'a, Message, Renderer, Dependency, View>(
dependency: Dependency,
- view: impl Fn() -> View + 'a,
+ view: impl Fn(&Dependency) -> View + 'a,
) -> Lazy<'a, Message, Renderer, Dependency, View>
where
Dependency: Hash + 'a,