Skip to content

Commit

Permalink
🎨 🔨 fix clippy errors
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Zhang <[email protected]>
  • Loading branch information
zwpaper committed Feb 15, 2024
1 parent 8b9003d commit fcb147b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/meta/filetype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub enum FileType {

impl FileType {
#[cfg(windows)]
const EXECUTABLE_EXTENSIONS: &[&'static str] = &["exe", "msi", "bat", "ps1"];
const EXECUTABLE_EXTENSIONS: &'static [&'static str] = &["exe", "msi", "bat", "ps1"];

#[cfg(unix)]
pub fn new(
Expand Down
4 changes: 1 addition & 3 deletions src/meta/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,7 @@ impl Ord for Name {

impl PartialOrd for Name {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
self.name
.to_lowercase()
.partial_cmp(&other.name.to_lowercase())
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit fcb147b

Please sign in to comment.