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
|
@ -310,9 +310,10 @@ impl QueryCondition {
|
|||
// We're about to swallow the error in a `<general-enclosed>`
|
||||
// condition, so report it while we can.
|
||||
let loc = e.location;
|
||||
let error = ContextualParseError::InvalidMediaRule(input.slice_from(start), e);
|
||||
let error =
|
||||
ContextualParseError::InvalidMediaRule(input.slice_from(start), e);
|
||||
context.log_css_error(loc, error);
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
Token::Function(..) => {
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
|
||||
//! Query features.
|
||||
|
||||
use super::condition::KleeneValue;
|
||||
use crate::parser::ParserContext;
|
||||
use crate::values::computed::{self, CSSPixelLength, Ratio, Resolution};
|
||||
use crate::Atom;
|
||||
use cssparser::Parser;
|
||||
use super::condition::KleeneValue;
|
||||
use std::fmt;
|
||||
use style_traits::ParseError;
|
||||
|
||||
|
|
|
@ -651,7 +651,7 @@ impl QueryFeatureExpression {
|
|||
.kind
|
||||
.non_ranged_value()
|
||||
.map(|v| *expect!(Enumerated, v));
|
||||
return evaluator(context, computed)
|
||||
return evaluator(context, computed);
|
||||
},
|
||||
Evaluator::BoolInteger(eval) => {
|
||||
let computed = self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue