Remove unnecessary Command::batch in todos example

This commit is contained in:
Héctor Ramón Jiménez 2024-03-17 17:58:52 +01:00
parent 784fa80c0d
commit 2eb3333623
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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 {