Skip to content

Commit 6d73abd

Browse files
committed
chore: Update cssparser to 0.29
1 parent 286eced commit 6d73abd

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

css-inline/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ default = ["cli"]
1919
cli = ["pico-args", "rayon"]
2020

2121
[dependencies]
22-
cssparser = "0.28"
22+
cssparser = "0.29"
2323
kuchiki = "0.8"
2424
attohttpc = { version = "0", default-features = false, features = ["compress", "tls-rustls"] }
2525
url = "2"

css-inline/src/parser.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,15 @@ impl<'i> cssparser::DeclarationParser<'i> for CSSDeclarationListParser {
5555
}
5656

5757
impl<'i> cssparser::AtRuleParser<'i> for CSSRuleListParser {
58-
type PreludeNoBlock = &'i str;
59-
type PreludeBlock = &'i str;
58+
type Prelude = &'i str;
6059
type AtRule = QualifiedRule<'i>;
6160
type Error = ();
6261
}
6362

6463
/// Parsing for at-rules, e.g: `@charset "utf-8";`
6564
/// Since they are can not be inlined we use the default implementation, that rejects all at-rules.
6665
impl<'i> cssparser::AtRuleParser<'i> for CSSDeclarationListParser {
67-
type PreludeNoBlock = String;
68-
type PreludeBlock = String;
66+
type Prelude = String;
6967
type AtRule = Declaration<'i>;
7068
type Error = ();
7169
}

0 commit comments

Comments
 (0)