We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6353d50 commit 275baaeCopy full SHA for 275baae
url/src/parser.rs
@@ -143,7 +143,7 @@ impl fmt::Display for SyntaxViolation {
143
}
144
145
146
-#[derive(Copy, Clone, PartialEq)]
+#[derive(Copy, Clone, PartialEq, Eq)]
147
pub enum SchemeType {
148
File,
149
SpecialNotFile,
@@ -1561,7 +1561,7 @@ pub fn is_windows_drive_letter(segment: &str) -> bool {
1561
/// Whether path starts with a root slash
1562
/// and a windows drive letter eg: "/c:" or "/a:/"
1563
fn path_starts_with_windows_drive_letter(s: &str) -> bool {
1564
- if let Some(c) = s.as_bytes().get(0) {
+ if let Some(c) = s.as_bytes().first() {
1565
matches!(c, b'/' | b'\\' | b'?' | b'#') && starts_with_windows_drive_letter(&s[1..])
1566
} else {
1567
false
0 commit comments