Skip to content

Commit

Permalink
cargo fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
jugglerchris committed Dec 20, 2024
1 parent 71251e2 commit a9055af
Showing 1 changed file with 33 additions and 38 deletions.
71 changes: 33 additions & 38 deletions src/css/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1114,14 +1114,12 @@ mod test {
super::parse_rules("color: inherit"),
Ok((
"",
vec![
Declaration {
data: Decl::Unknown {
name: PropertyName("color".into()),
},
important: Importance::Default,
vec![Declaration {
data: Decl::Unknown {
name: PropertyName("color".into()),
},
]
important: Importance::Default,
},]
))
);
}
Expand Down Expand Up @@ -1312,45 +1310,42 @@ mod test {
Ok((
"",
vec![
RuleSet {
selectors: vec![Selector {
components: vec![
SelectorComponent::Class("foo-bar2".into()),
SelectorComponent::CombDescendant,
SelectorComponent::Element("a".into()),
SelectorComponent::CombDescendant,
SelectorComponent::Class("foo".into()),
],
},],
declarations: vec![
Declaration {
RuleSet {
selectors: vec![Selector {
components: vec![
SelectorComponent::Class("foo-bar2".into()),
SelectorComponent::CombDescendant,
SelectorComponent::Element("a".into()),
SelectorComponent::CombDescendant,
SelectorComponent::Class("foo".into()),
],
},],
declarations: vec![Declaration {
data: Decl::Unknown {
name: PropertyName("color".into()),
},
important: Importance::Default,
},
],
},
RuleSet {
selectors: vec![Selector {
components: vec![
SelectorComponent::Class("foo-bar2".into()),
SelectorComponent::CombDescendant,
SelectorComponent::Class("foo-bar".into()),
SelectorComponent::Element("a".into()),
SelectorComponent::CombDescendant,
SelectorComponent::Class("foo".into()),
],
},],
declarations: vec![
Declaration {
},],
},
RuleSet {
selectors: vec![Selector {
components: vec![
SelectorComponent::Class("foo-bar2".into()),
SelectorComponent::CombDescendant,
SelectorComponent::Class("foo-bar".into()),
SelectorComponent::Element("a".into()),
SelectorComponent::CombDescendant,
SelectorComponent::Class("foo".into()),
],
},],
declarations: vec![Declaration {
data: Decl::Color {
value: Colour::Rgb(0x11, 0x22, 0x33)
},
important: Importance::Default,
},
],
}]
},],
}
]
))
);
}
Expand Down

0 comments on commit a9055af

Please sign in to comment.