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/stopwatch/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/stopwatch/src') diff --git a/examples/stopwatch/src/main.rs b/examples/stopwatch/src/main.rs index d84c4817..5a54ed2b 100644 --- a/examples/stopwatch/src/main.rs +++ b/examples/stopwatch/src/main.rs @@ -30,8 +30,9 @@ enum Message { impl Application for Stopwatch { type Executor = iced_futures::executor::AsyncStd; type Message = Message; + type Flags = (); - fn new() -> (Stopwatch, Command) { + fn new(_flags: ()) -> (Stopwatch, Command) { ( Stopwatch { duration: Duration::default(), -- cgit