mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-23 11:07:45 +02:00
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:
parent
ad449a53a3
commit
016504904f
1 changed files with 8 additions and 11 deletions
19
src/app.rs
19
src/app.rs
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue