diff options
author | 2023-01-12 04:44:14 +0100 | |
---|---|---|
committer | 2023-01-12 04:44:14 +0100 | |
commit | 902131eb517de85e09f522932858af53fc6aea3e (patch) | |
tree | e4777ad00ba580dca912ff695f5244bf8e9017de /examples/lazy | |
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 'examples/lazy')
-rw-r--r-- | examples/lazy/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/lazy/src/main.rs b/examples/lazy/src/main.rs index 818c91bc..6512106f 100644 --- a/examples/lazy/src/main.rs +++ b/examples/lazy/src/main.rs @@ -167,7 +167,7 @@ impl Sandbox for App { } fn view(&self) -> Element<Message> { - let options = lazy(self.version, || { + let options = lazy(self.version, |_| { let mut items: Vec<_> = self.items.iter().cloned().collect(); items.sort_by(|a, b| match self.order { |