diff options
| author | 2024-03-17 17:58:52 +0100 | |
|---|---|---|
| committer | 2024-03-17 17:58:52 +0100 | |
| commit | 2eb3333623e227f9a74a67f562880b7dc1eecdd0 (patch) | |
| tree | 1e4ffeffd20fa608fb4636ba9bbde1e436a4736f /examples/todos | |
| parent | 784fa80c0d92a7d1fda8a7ff77185d50423e228a (diff) | |
| download | iced-2eb3333623e227f9a74a67f562880b7dc1eecdd0.tar.gz iced-2eb3333623e227f9a74a67f562880b7dc1eecdd0.tar.bz2 iced-2eb3333623e227f9a74a67f562880b7dc1eecdd0.zip | |
Remove unnecessary `Command::batch` in `todos` example
Diffstat (limited to '')
| -rw-r--r-- | examples/todos/src/main.rs | 5 |
1 files changed, 1 insertions, 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<Message> { - Command::batch(vec![Command::perform( - SavedState::load(), - Message::Loaded, - )]) + Command::perform(SavedState::load(), Message::Loaded) } fn title(&self) -> String { |
