Skip to content

Commit 24fcc35

Browse files
committed
Remove unneeded logic for inner call type params
1 parent d7a583a commit 24fcc35

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/expand.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -406,17 +406,10 @@ fn transform_block(
406406
replace.visit_block_mut(block);
407407

408408
let brace = block.brace_token;
409-
410-
let types_specifier = if !types.is_empty() {
411-
quote! { ::<#(#types),*> }
412-
} else {
413-
quote! {}
414-
};
415-
416409
*block = parse_quote!({
417410
#[allow(clippy::used_underscore_binding)]
418411
#standalone #block
419-
Box::pin(#inner#types_specifier(#(#args),*))
412+
Box::pin(#inner::<#(#types),*>(#(#args),*))
420413
});
421414

422415
block.brace_token = brace;

0 commit comments

Comments
 (0)