mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Rustfmt servo/. r=zrhoffman
$ find servo -name '*.rs' | xargs rustup run nightly rustfmt Depends on D179380 Differential Revision: https://phabricator.services.mozilla.com/D179381
This commit is contained in:
parent
68cbe6833d
commit
ad72081ac8
70 changed files with 665 additions and 448 deletions
|
@ -27,8 +27,8 @@ use crate::values::specified::NonNegativePercentage;
|
|||
#[cfg(feature = "gecko")]
|
||||
use cssparser::UnicodeRange;
|
||||
use cssparser::{
|
||||
AtRuleParser, CowRcStr, RuleBodyParser, RuleBodyItemParser, DeclarationParser, Parser,
|
||||
QualifiedRuleParser, SourceLocation,
|
||||
AtRuleParser, CowRcStr, DeclarationParser, Parser, QualifiedRuleParser, RuleBodyItemParser,
|
||||
RuleBodyParser, SourceLocation,
|
||||
};
|
||||
use selectors::parser::SelectorParseErrorKind;
|
||||
use std::fmt::{self, Write};
|
||||
|
@ -566,9 +566,15 @@ impl<'a, 'b, 'i> QualifiedRuleParser<'i> for FontFaceRuleParser<'a, 'b> {
|
|||
type Error = StyleParseErrorKind<'i>;
|
||||
}
|
||||
|
||||
impl<'a, 'b, 'i> RuleBodyItemParser<'i, (), StyleParseErrorKind<'i>> for FontFaceRuleParser<'a, 'b> {
|
||||
fn parse_qualified(&self) -> bool { false }
|
||||
fn parse_declarations(&self) -> bool { true }
|
||||
impl<'a, 'b, 'i> RuleBodyItemParser<'i, (), StyleParseErrorKind<'i>>
|
||||
for FontFaceRuleParser<'a, 'b>
|
||||
{
|
||||
fn parse_qualified(&self) -> bool {
|
||||
false
|
||||
}
|
||||
fn parse_declarations(&self) -> bool {
|
||||
true
|
||||
}
|
||||
}
|
||||
|
||||
fn font_tech_enabled() -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue