mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Run "cargo +nightly fmt" for style components in servo
The directories changed: * servo/components/selectors/ * servo/components/style/ * servo/components/style_derive/ * servo/ports/geckolib/ Per review request, disable rustfmt in `components_to_transform_3d_matrix()` to preserve the format for a call to `Transform3D::new`. My mozilla-central is at https://hg.mozilla.org/mozilla-central/rev/d1ae84015c22f2034435b47194fdced878072035 My nightly rust is 1.66.0-nightly (8b705839c 2022-09-26). Differential Revision: https://phabricator.services.mozilla.com/D158234
This commit is contained in:
parent
1a9198a5ef
commit
3da52edffc
60 changed files with 684 additions and 489 deletions
|
@ -6,10 +6,10 @@ use crate::to_css::{CssBitflagAttrs, CssVariantAttrs};
|
|||
use darling::FromField;
|
||||
use darling::FromVariant;
|
||||
use derive_common::cg;
|
||||
use proc_macro2::{TokenStream, Span};
|
||||
use proc_macro2::{Span, TokenStream};
|
||||
use quote::{quote, TokenStreamExt};
|
||||
use syn::parse_quote;
|
||||
use syn::{self, Ident, DeriveInput, Path};
|
||||
use syn::{self, DeriveInput, Ident, Path};
|
||||
use synstructure::{Structure, VariantInfo};
|
||||
|
||||
#[derive(Default, FromVariant)]
|
||||
|
@ -112,9 +112,12 @@ fn parse_non_keyword_variant(
|
|||
|
||||
if let Some(ref bitflags) = variant_attrs.bitflags {
|
||||
assert!(skip_try, "Should be the only variant");
|
||||
assert!(parse_attrs.condition.is_none(), "Should be the only variant");
|
||||
assert!(
|
||||
parse_attrs.condition.is_none(),
|
||||
"Should be the only variant"
|
||||
);
|
||||
assert!(where_clause.is_none(), "Generic bitflags?");
|
||||
return parse_bitflags(bitflags)
|
||||
return parse_bitflags(bitflags);
|
||||
}
|
||||
|
||||
let field_attrs = cg::parse_field_attrs::<ParseFieldAttrs>(binding_ast);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue