Merge pull request #246 from hecrj/feature/application-flags

Application flags
This commit is contained in:
Héctor Ramón 2020-03-31 17:49:56 +02:00 committed by GitHub
commit e79e832092
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 119 additions and 63 deletions

View file

@ -23,8 +23,9 @@ enum Message {
impl Application for Clock {
type Executor = executor::Default;
type Message = Message;
type Flags = ();
fn new() -> (Self, Command<Message>) {
fn new(_flags: ()) -> (Self, Command<Message>) {
(
Clock {
now: chrono::Local::now().into(),