Run cargo fmt

This commit is contained in:
Timothy Warren 2020-02-28 11:51:40 -05:00
parent 8b9adcddcc
commit 1574dca648

View File

@ -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
}