summaryrefslogtreecommitdiffstats
path: root/examples/todos
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-17 17:58:52 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-17 17:58:52 +0100
commit2eb3333623e227f9a74a67f562880b7dc1eecdd0 (patch)
tree1e4ffeffd20fa608fb4636ba9bbde1e436a4736f /examples/todos
parent784fa80c0d92a7d1fda8a7ff77185d50423e228a (diff)
downloadiced-2eb3333623e227f9a74a67f562880b7dc1eecdd0.tar.gz
iced-2eb3333623e227f9a74a67f562880b7dc1eecdd0.tar.bz2
iced-2eb3333623e227f9a74a67f562880b7dc1eecdd0.zip
Remove unnecessary `Command::batch` in `todos` example
Diffstat (limited to 'examples/todos')
-rw-r--r--examples/todos/src/main.rs5
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 {