Skip to content

Commit 26a3c05

Browse files
committed
Remove some default associated types, so that default methods don’t have to be overridden.
Since rust-lang/rust#26728 , Servo would get build errors like: error: the following trait items need to be reimplemented as `AtRule` was overridden: `rule_without_block` [E0399] type AtRule = CSSRule; ^~~~~~~~~~~~~~~~~~~~~~
1 parent 067a455 commit 26a3c05

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "cssparser"
4-
version = "0.3.1"
4+
version = "0.3.2"
55
authors = [ "Simon Sapin <[email protected]>" ]
66

77
description = "Rust implementation of CSS Syntax Level 3"

src/rules_and_declarations.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ pub trait DeclarationParser {
8383
/// for using `DeclarationListParser` to parse a declartions list with only qualified rules.
8484
pub trait AtRuleParser {
8585
/// The intermediate representation of an at-rule prelude.
86-
type Prelude = ();
86+
type Prelude;
8787

8888
/// The finished representation of an at-rule.
89-
type AtRule = ();
89+
type AtRule;
9090

9191
/// Parse the prelude of an at-rule with the given `name`.
9292
///
@@ -151,10 +151,10 @@ pub trait AtRuleParser {
151151
/// (such as inside `@font-feature-values`).
152152
pub trait QualifiedRuleParser {
153153
/// The intermediate representation of a qualified rule prelude.
154-
type Prelude = ();
154+
type Prelude;
155155

156156
/// The finished representation of a qualified rule.
157-
type QualifiedRule = ();
157+
type QualifiedRule;
158158

159159
/// Parse the prelude of a qualified rule. For style rules, this is as Selector list.
160160
///

0 commit comments

Comments
 (0)