Skip to content

Commit 03dba86

Browse files
committed
refactor: Apply clippy lint
I want the CI run to be unambiguous, as we're changing a lot in CI.
1 parent 9236d86 commit 03dba86

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

src/app.rs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -505,17 +505,14 @@ impl TaskwarriorTui {
505505
let virtual_tag_names_in_precedence = &self.config.rule_precedence_color;
506506
let mut style = Style::default();
507507
for tag_name in virtual_tag_names_in_precedence.iter().rev() {
508-
match tag_name.as_str() {
509-
"project." => {
510-
let s = self
511-
.config
512-
.color
513-
.get(&format!("color.project.{}", project[0]))
514-
.copied()
515-
.unwrap_or_default();
516-
style = style.patch(s);
517-
}
518-
&_ => {}
508+
if tag_name.as_str() == "project." {
509+
let s = self
510+
.config
511+
.color
512+
.get(&format!("color.project.{}", project[0]))
513+
.copied()
514+
.unwrap_or_default();
515+
style = style.patch(s);
519516
}
520517
}
521518
style

0 commit comments

Comments
 (0)