mirror of
https://github.com/servo/servo.git
synced 2025-08-28 16:48:22 +01:00
fix lint error, this did not occur locally
Signed-off-by: Ville Lindholm <ville@lindholm.dev>
This commit is contained in:
parent
fb2e2cd109
commit
cc4233a008
1 changed files with 3 additions and 4 deletions
|
@ -3812,10 +3812,9 @@ impl SelectorsElement for DomRoot<Element> {
|
|||
// a string containing commas (separating each language tag in
|
||||
// a list) but the pseudo-class instead should be parsing and
|
||||
// storing separate <ident> or <string>s for each language tag.
|
||||
NonTSPseudoClass::Lang(ref lang) => extended_filtering(
|
||||
&self.upcast::<Node>().get_lang().unwrap_or(String::new()),
|
||||
lang,
|
||||
),
|
||||
NonTSPseudoClass::Lang(ref lang) => {
|
||||
extended_filtering(&self.upcast::<Node>().get_lang().unwrap_or_default(), lang)
|
||||
},
|
||||
|
||||
NonTSPseudoClass::ReadOnly => {
|
||||
!Element::state(self).contains(NonTSPseudoClass::ReadWrite.state_flag())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue