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/download_progress/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/download_progress') diff --git a/examples/download_progress/src/main.rs b/examples/download_progress/src/main.rs index 6c3094f7..c37ae678 100644 --- a/examples/download_progress/src/main.rs +++ b/examples/download_progress/src/main.rs @@ -26,8 +26,9 @@ pub enum Message { impl Application for Example { type Executor = executor::Default; type Message = Message; + type Flags = (); - fn new() -> (Example, Command) { + fn new(_flags: ()) -> (Example, Command) { ( Example::Idle { button: button::State::new(), -- cgit