diff options
author | 2023-01-12 04:44:14 +0100 | |
---|---|---|
committer | 2023-01-12 04:44:14 +0100 | |
commit | 902131eb517de85e09f522932858af53fc6aea3e (patch) | |
tree | e4777ad00ba580dca912ff695f5244bf8e9017de /lazy/src/lib.rs | |
parent | ca337b880f82b3da264ac1626f973f8be29e95f4 (diff) | |
parent | 58bcc4404e0083276576299217fe6e3187d0ef14 (diff) | |
download | iced-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.rs | 2 |
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, |