Remove unnecessary Command::batch in todos example
This commit is contained in:
parent
784fa80c0d
commit
2eb3333623
1 changed files with 1 additions and 4 deletions
|
|
@ -55,10 +55,7 @@ enum Message {
|
|||
|
||||
impl Todos {
|
||||
fn load() -> Command<Message> {
|
||||
Command::batch(vec![Command::perform(
|
||||
SavedState::load(),
|
||||
Message::Loaded,
|
||||
)])
|
||||
Command::perform(SavedState::load(), Message::Loaded)
|
||||
}
|
||||
|
||||
fn title(&self) -> String {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue