Skip to content

Commit

Permalink
Terminate decls with 'let __async_trait: ();'.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Feb 25, 2021
1 parent 45f9d24 commit 628ed73
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ pub fn expand(input: &mut Item, is_local: bool) {
let inner_method_attrs = &[
parse_quote!(#[allow(clippy::used_underscore_binding)]),
parse_quote!(#[allow(clippy::type_repetition_in_bounds)]),
parse_quote!(#[allow(clippy::let_unit_value)]),
];

let trait_method_attrs = &[
parse_quote!(#[must_use]),
parse_quote!(#[allow(clippy::type_repetition_in_bounds)]),
parse_quote!(#[allow(clippy::let_unit_value)]),
];

match input {
Expand Down Expand Up @@ -335,6 +337,7 @@ fn transform_block(
Box::pin(async move {
let __ret: #ret_ty = {
#(#decls)*
let __async_trait: ();
#(#stmts)*
};

Expand Down

0 comments on commit 628ed73

Please sign in to comment.