Skip to content

Commit

Permalink
refactor: Apply clippy lint
Browse files Browse the repository at this point in the history
I want the CI run to be unambiguous, as we're changing a lot in CI.
  • Loading branch information
RedEtherbloom committed Nov 13, 2024
1 parent 9236d86 commit 03dba86
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,17 +505,14 @@ impl TaskwarriorTui {
let virtual_tag_names_in_precedence = &self.config.rule_precedence_color;
let mut style = Style::default();
for tag_name in virtual_tag_names_in_precedence.iter().rev() {
match tag_name.as_str() {
"project." => {
let s = self
.config
.color
.get(&format!("color.project.{}", project[0]))
.copied()
.unwrap_or_default();
style = style.patch(s);
}
&_ => {}
if tag_name.as_str() == "project." {
let s = self
.config
.color
.get(&format!("color.project.{}", project[0]))
.copied()
.unwrap_or_default();
style = style.patch(s);
}
}
style
Expand Down

0 comments on commit 03dba86

Please sign in to comment.