Run cargo fmt
This commit is contained in:
parent
8b9adcddcc
commit
1574dca648
@ -144,7 +144,7 @@ impl Model {
|
||||
|
||||
fn items_left(&self) -> String {
|
||||
let left = self.tasks.iter().filter(|task| !task.done).count();
|
||||
let plural = if left == 1 { "item" } else { "items" };
|
||||
let plural = if left == 1 { "item" } else { "items" };
|
||||
format!("{} {} left", left, plural)
|
||||
}
|
||||
|
||||
@ -195,7 +195,7 @@ impl Component for Model {
|
||||
self.tasks.remove(index);
|
||||
UpdateAction::Render
|
||||
}
|
||||
Message::Filter{ filter } => {
|
||||
Message::Filter { filter } => {
|
||||
self.filter = filter;
|
||||
UpdateAction::Render
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user