From 42f8497af2ce0e3b71c7936bbff65c183cd948b8 Mon Sep 17 00:00:00 2001 From: Maddiaa0 <47148561+Maddiaa0@users.noreply.github.com> Date: Fri, 2 Feb 2024 18:52:16 +0000 Subject: [PATCH 1/2] chore: surpress chained macro warning --- noir/aztec_macros/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/noir/aztec_macros/src/lib.rs b/noir/aztec_macros/src/lib.rs index 00666488455..e6d75711dcb 100644 --- a/noir/aztec_macros/src/lib.rs +++ b/noir/aztec_macros/src/lib.rs @@ -199,6 +199,11 @@ fn lambda(parameters: Vec<(Pattern, UnresolvedType)>, body: Expression) -> Expre } macro_rules! chained_path { + ( $base:expr ) => { + { + ident_path($base) + } + }; ( $base:expr $(, $tail:expr)* ) => { { let mut base_path = ident_path($base); From 424c9966467a24f87e872f2d6dbf5e4e0c9ecb92 Mon Sep 17 00:00:00 2001 From: Maddiaa0 <47148561+Maddiaa0@users.noreply.github.com> Date: Fri, 2 Feb 2024 18:53:00 +0000 Subject: [PATCH 2/2] fix: fmt --- noir/aztec_macros/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noir/aztec_macros/src/lib.rs b/noir/aztec_macros/src/lib.rs index e6d75711dcb..b8cda78ff34 100644 --- a/noir/aztec_macros/src/lib.rs +++ b/noir/aztec_macros/src/lib.rs @@ -203,7 +203,7 @@ macro_rules! chained_path { { ident_path($base) } - }; + }; ( $base:expr $(, $tail:expr)* ) => { { let mut base_path = ident_path($base);