Skip to content

Commit 0ca8f71

Browse files
committed
Format with rustfmt 1.4.27-nightly
1 parent 33a71f1 commit 0ca8f71

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/expand.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ pub fn expand(input: &mut Item, is_local: bool) {
7272
if let Some(block) = block {
7373
has_self |= has_self_in_block(block);
7474
transform_block(context, sig, block, has_self, is_local);
75-
method.attrs.push(parse_quote!(#[allow(clippy::used_underscore_binding)]));
75+
method
76+
.attrs
77+
.push(parse_quote!(#[allow(clippy::used_underscore_binding)]));
7678
}
7779
let has_default = method.default.is_some();
7880
transform_sig(context, sig, has_self, has_default, is_local);
@@ -102,7 +104,9 @@ pub fn expand(input: &mut Item, is_local: bool) {
102104
let has_self = has_self_in_sig(sig) || has_self_in_block(block);
103105
transform_block(context, sig, block, has_self, is_local);
104106
transform_sig(context, sig, has_self, false, is_local);
105-
method.attrs.push(parse_quote!(#[allow(clippy::used_underscore_binding)]));
107+
method
108+
.attrs
109+
.push(parse_quote!(#[allow(clippy::used_underscore_binding)]));
106110
}
107111
}
108112
}

0 commit comments

Comments
 (0)