Skip to content

Commit 1675e9a

Browse files
committed
Format with rustfmt 2019-07-16
1 parent 62c6fcf commit 1675e9a

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/expand.rs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,13 @@ pub fn expand(input: &mut Item, is_local: bool) {
9595
// 'life1: 'async_trait,
9696
// T: 'async_trait,
9797
// Self: Sync + 'async_trait;
98-
fn transform_sig(context: Context, sig: &mut MethodSig, has_self: bool, has_default: bool, is_local: bool) {
98+
fn transform_sig(
99+
context: Context,
100+
sig: &mut MethodSig,
101+
has_self: bool,
102+
has_default: bool,
103+
is_local: bool,
104+
) {
99105
sig.decl.fn_token.span = sig.asyncness.take().unwrap().span;
100106

101107
let ret = match &sig.decl.output {
@@ -212,7 +218,13 @@ fn transform_sig(context: Context, sig: &mut MethodSig, has_self: bool, has_defa
212218
// _self + x
213219
// }
214220
// Pin::from(Box::new(async_trait_method::<T, Self>(self, x)))
215-
fn transform_block(context: Context, sig: &mut MethodSig, block: &mut Block, has_self: bool, is_local: bool) {
221+
fn transform_block(
222+
context: Context,
223+
sig: &mut MethodSig,
224+
block: &mut Block,
225+
has_self: bool,
226+
is_local: bool,
227+
) {
216228
let inner = Ident::new(&format!("__{}", sig.ident), sig.ident.span());
217229
let args = sig
218230
.decl

0 commit comments

Comments
 (0)