Skip to content

Commit 355cf8f

Browse files
committed
Bump MSRV to 1.71
1 parent 8b71deb commit 355cf8f

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- nightly
1919
- beta
2020
- stable
21-
- 1.68.0
21+
- 1.71.0
2222
features:
2323
- --no-default-features
2424
-

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ readme = "README.md"
1010
keywords = ["css", "syntax", "parser"]
1111
license = "MPL-2.0"
1212
edition = "2018"
13-
rust-version = "1.68"
13+
rust-version = "1.71"
1414

1515
exclude = ["src/css-parsing-tests/**", "src/big-data-url.css"]
1616

color/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ documentation = "https://docs.rs/cssparser-color/"
77
repository = "https://github.com/servo/rust-cssparser"
88
license = "MPL-2.0"
99
edition = "2021"
10+
rust-version = "1.71"
1011

1112
[lib]
1213
path = "lib.rs"

src/parser.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -659,9 +659,7 @@ impl<'i: 't, 't> Parser<'i, 't> {
659659
.input
660660
.cached_token
661661
.as_ref()
662-
.map_or(false, |cached_token| {
663-
cached_token.start_position == token_start_position
664-
});
662+
.is_some_and(|cached_token| cached_token.start_position == token_start_position);
665663
let token = if using_cached_token {
666664
let cached_token = self.input.cached_token.as_ref().unwrap();
667665
self.input.tokenizer.reset(&cached_token.end_state);

0 commit comments

Comments
 (0)