Skip to content

Commit 275baae

Browse files
author
Ridwan Abdilahi
committed
Fix lint errors.
1 parent 6353d50 commit 275baae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

url/src/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl fmt::Display for SyntaxViolation {
143143
}
144144
}
145145

146-
#[derive(Copy, Clone, PartialEq)]
146+
#[derive(Copy, Clone, PartialEq, Eq)]
147147
pub enum SchemeType {
148148
File,
149149
SpecialNotFile,
@@ -1561,7 +1561,7 @@ pub fn is_windows_drive_letter(segment: &str) -> bool {
15611561
/// Whether path starts with a root slash
15621562
/// and a windows drive letter eg: "/c:" or "/a:/"
15631563
fn path_starts_with_windows_drive_letter(s: &str) -> bool {
1564-
if let Some(c) = s.as_bytes().get(0) {
1564+
if let Some(c) = s.as_bytes().first() {
15651565
matches!(c, b'/' | b'\\' | b'?' | b'#') && starts_with_windows_drive_letter(&s[1..])
15661566
} else {
15671567
false

0 commit comments

Comments
 (0)