Skip to content

Commit d6b4cda

Browse files
authored
Merge pull request #786 from ridwanabdillahi/fix_build_break
Update the minimum rust-version to 1.51 to fix Rust 1.45.0 CI failure
2 parents a72f83d + 275baae commit d6b4cda

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest, macos-latest, windows-latest]
16-
rust: [1.45.0, stable, beta, nightly]
16+
rust: [1.51.0, stable, beta, nightly]
1717
exclude:
1818
- os: macos-latest
19-
rust: 1.45.0
19+
rust: 1.51.0
2020
- os: windows-latest
21-
rust: 1.45.0
21+
rust: 1.51.0
2222
- os: macos-latest
2323
rust: beta
2424
- os: windows-latest

data-url/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repository = "https://github.com/servo/rust-url"
77
license = "MIT OR Apache-2.0"
88
edition = "2018"
99
autotests = false
10-
rust-version = "1.45"
10+
rust-version = "1.51"
1111

1212
[dev-dependencies]
1313
tester = "0.9"

form_urlencoded/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description = "Parser and serializer for the application/x-www-form-urlencoded s
66
repository = "https://github.com/servo/rust-url"
77
license = "MIT OR Apache-2.0"
88
edition = "2018"
9-
rust-version = "1.45"
9+
rust-version = "1.51"
1010

1111
[lib]
1212
test = false

idna/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repository = "https://github.com/servo/rust-url/"
77
license = "MIT OR Apache-2.0"
88
autotests = false
99
edition = "2018"
10-
rust-version = "1.45"
10+
rust-version = "1.51"
1111

1212
[lib]
1313
doctest = false

percent_encoding/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description = "Percent encoding and decoding"
66
repository = "https://github.com/servo/rust-url/"
77
license = "MIT OR Apache-2.0"
88
edition = "2018"
9-
rust-version = "1.45"
9+
rust-version = "1.51"
1010

1111
[features]
1212
default = ["alloc"]

url/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ categories = ["parser-implementations", "web-programming", "encoding"]
1414
license = "MIT OR Apache-2.0"
1515
include = ["src/**/*", "LICENSE-*", "README.md", "tests/**"]
1616
edition = "2018"
17-
rust-version = "1.45"
17+
rust-version = "1.51"
1818

1919
[badges]
2020
travis-ci = { repository = "servo/rust-url" }

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)