From 2eb3333623e227f9a74a67f562880b7dc1eecdd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sun, 17 Mar 2024 17:58:52 +0100 Subject: [PATCH] Remove unnecessary `Command::batch` in `todos` example --- examples/todos/src/main.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/todos/src/main.rs b/examples/todos/src/main.rs index cfd9dcb7..5479957a 100644 --- a/examples/todos/src/main.rs +++ b/examples/todos/src/main.rs @@ -55,10 +55,7 @@ enum Message { impl Todos { fn load() -> Command { - Command::batch(vec![Command::perform( - SavedState::load(), - Message::Loaded, - )]) + Command::perform(SavedState::load(), Message::Loaded) } fn title(&self) -> String {