From e49d4c80394bc8086feadb8010b80dd3a64fab6a Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Thu, 11 Feb 2021 01:47:10 -0700 Subject: [PATCH] Run cargo clippy --- src/app.rs | 3 +-- src/task_report.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app.rs b/src/app.rs index b5c139b..cd64257 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1300,8 +1300,7 @@ impl TTApp { .tags() .unwrap() .iter() - .find(|s| !self.task_report_table.virtual_tags.contains(s)) - .is_some() + .any(|s| !self.task_report_table.virtual_tags.contains(s)) { add_tag(&mut task, "TAGGED".to_string()); } diff --git a/src/task_report.rs b/src/task_report.rs index d0a33f1..7241418 100644 --- a/src/task_report.rs +++ b/src/task_report.rs @@ -261,7 +261,7 @@ impl TaskReportTable { if d != *task.description() { d = format!("{}…", d); } - d.to_string() + d } "description" => task.description().to_string(), "urgency" => match &task.urgency() {