refactor: Apply clippy lint

I want the CI run to be unambiguous, as we're changing a lot in CI.
This commit is contained in:
RedEtherbloom 2024-11-13 18:16:15 +01:00
parent ad449a53a3
commit 016504904f

View file

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