Skip to content

Commit

Permalink
fix: allow unused_paren when convert to sync
Browse files Browse the repository at this point in the history
  • Loading branch information
fMeow committed Oct 5, 2020
1 parent 9f14445 commit 242ded2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ fn convert_async(input: &mut Item, send: bool) -> TokenStream2 {
}

fn convert_sync(input: &mut Item) -> TokenStream2 {
match input {
let token = match input {
Item::Impl(item) => {
for inner in &mut item.items {
if let ImplItem::Method(ref mut method) = inner {
Expand All @@ -361,8 +361,8 @@ fn convert_sync(input: &mut Item) -> TokenStream2 {
}
AsyncAwaitRemoval.remove_async_await(quote!(#item))
}
}
.into()
};
quote!(#[allow(unused_parens)]#token).into()
}

/// maybe_async attribute macro
Expand Down

0 comments on commit 242ded2

Please sign in to comment.