From 2eb3333623e227f9a74a67f562880b7dc1eecdd0 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 17 Mar 2024 17:58:52 +0100 Subject: Remove unnecessary `Command::batch` in `todos` example --- examples/todos/src/main.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'examples/todos/src') 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 { -- cgit