From 89e703e408fd03119f80b85524f0238073ea5e5f Mon Sep 17 00:00:00 2001 From: Eric Scouten Date: Thu, 29 Aug 2024 18:31:52 -0700 Subject: [PATCH] fix: Simplify internal syntax --- macros/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/macros/src/lib.rs b/macros/src/lib.rs index a345846..305f1fd 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -54,8 +54,7 @@ fn convert_sync_async( tokens }; - let mut dia = DesugarIfAsync { is_async }; - dia.desugar_if_async(tokens) + DesugarIfAsync { is_async }.desugar_if_async(tokens) } #[proc_macro_attribute]