mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Rustfmt has changed its default style :/
This commit is contained in:
parent
82fc6d9f49
commit
be69f9c3e6
207 changed files with 1200 additions and 1339 deletions
|
@ -172,9 +172,7 @@ fn path_to_ident(path: &Path) -> Option<&Ident> {
|
|||
Path {
|
||||
leading_colon: None,
|
||||
ref segments,
|
||||
}
|
||||
if segments.len() == 1 =>
|
||||
{
|
||||
} if segments.len() == 1 => {
|
||||
if segments[0].arguments.is_empty() {
|
||||
Some(&segments[0].ident)
|
||||
} else {
|
||||
|
|
|
@ -43,7 +43,7 @@ pub fn derive(input: DeriveInput) -> TokenStream {
|
|||
saw_condition |= parse_attrs.condition.is_some();
|
||||
let condition = match parse_attrs.condition {
|
||||
Some(ref p) => quote! { if #p(context) },
|
||||
None => quote!{},
|
||||
None => quote! {},
|
||||
};
|
||||
|
||||
let mut body = quote! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue