Skip to content

Commit

Permalink
Fix clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Oct 1, 2024
1 parent d8b2226 commit 7fc11df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ mod tests {
);
}

#[cfg(all(feature = "owo-colors"))]
#[cfg(feature = "owo-colors")]
#[test]
fn coloring_owo_colors() {
use owo_colors::OwoColorize;
Expand Down
4 changes: 2 additions & 2 deletions src/suffix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ impl SuffixMap {
name.reverse();

// Find a case-sensitive match
let cs_index = Self::find(&self.cs_matcher, &name);
let cs_index = Self::find(&self.cs_matcher, name);

// Find a case-insensitive match
let ci_index = Self::find(&self.ci_matcher, &name).map(|i| self.ci_ids[i]);
let ci_index = Self::find(&self.ci_matcher, name).map(|i| self.ci_ids[i]);

// Return the later match (earlier index)
let i = match (cs_index, ci_index) {
Expand Down

0 comments on commit 7fc11df

Please sign in to comment.