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:
Emilio Cobos Álvarez 2023-05-30 08:04:52 +00:00 committed by Martin Robinson
parent 68cbe6833d
commit ad72081ac8
70 changed files with 665 additions and 448 deletions

View file

@ -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(..) => {

View file

@ -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;

View file

@ -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