mirror of
https://github.com/servo/servo.git
synced 2025-10-14 15:30:27 +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
|
@ -100,7 +100,12 @@ fn nan_inf_enabled() -> bool {
|
|||
}
|
||||
|
||||
/// Serialize a specified dimension with unit, calc, and NaN/infinity handling (if enabled)
|
||||
pub fn serialize_specified_dimension<W>(v: f32, unit: &str, was_calc: bool, dest: &mut CssWriter<W>) -> fmt::Result
|
||||
pub fn serialize_specified_dimension<W>(
|
||||
v: f32,
|
||||
unit: &str,
|
||||
was_calc: bool,
|
||||
dest: &mut CssWriter<W>,
|
||||
) -> fmt::Result
|
||||
where
|
||||
W: Write,
|
||||
{
|
||||
|
@ -567,7 +572,10 @@ impl ToCss for CustomIdent {
|
|||
pub struct DashedIdent(pub Atom);
|
||||
|
||||
impl Parse for DashedIdent {
|
||||
fn parse<'i, 't>(_: &ParserContext, input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i>> {
|
||||
fn parse<'i, 't>(
|
||||
_: &ParserContext,
|
||||
input: &mut Parser<'i, 't>,
|
||||
) -> Result<Self, ParseError<'i>> {
|
||||
let location = input.current_source_location();
|
||||
let ident = input.expect_ident()?;
|
||||
if ident.starts_with("--") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue