Skip to content

Commit c28cc28

Browse files
committed
🎨 🔨 fix clippy errors
Signed-off-by: Wei Zhang <kweizh@gmail.com>
1 parent 4f3f85e commit c28cc28

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/meta/filetype.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub enum FileType {
1616

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

2121
#[cfg(unix)]
2222
pub fn new(

src/meta/name.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,7 @@ impl Ord for Name {
205205

206206
impl PartialOrd for Name {
207207
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
208-
self.name
209-
.to_lowercase()
210-
.partial_cmp(&other.name.to_lowercase())
208+
Some(self.cmp(other))
211209
}
212210
}
213211

0 commit comments

Comments
 (0)