From c4c5216e3b69d732b0518d510f95675a4ba7010b Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 30 Mar 2020 18:00:15 +0200 Subject: Allow passing external state to `Application::new` --- examples/pokedex/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/pokedex/src/main.rs') diff --git a/examples/pokedex/src/main.rs b/examples/pokedex/src/main.rs index 4449b901..600ef632 100644 --- a/examples/pokedex/src/main.rs +++ b/examples/pokedex/src/main.rs @@ -29,8 +29,9 @@ enum Message { impl Application for Pokedex { type Executor = iced::executor::Default; type Message = Message; + type Flags = (); - fn new() -> (Pokedex, Command) { + fn new(_flags: ()) -> (Pokedex, Command) { ( Pokedex::Loading, Command::perform(Pokemon::search(), Message::PokemonFound), -- cgit