From 90c2165231e06c82218163247820ebf3dbaae2d8 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Sun, 6 Jul 2025 14:18:46 -0400 Subject: [PATCH] Avoid shadowing `buf` --- aya-log-ebpf-macros/src/expand.rs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/aya-log-ebpf-macros/src/expand.rs b/aya-log-ebpf-macros/src/expand.rs index b49b3021..5eeff672 100644 --- a/aya-log-ebpf-macros/src/expand.rs +++ b/aya-log-ebpf-macros/src/expand.rs @@ -141,17 +141,17 @@ pub(crate) fn log(args: LogArgs, level: Option) -> Result {}, - Some(::aya_log_ebpf::LogBuf { buf }) => { + Some(::aya_log_ebpf::LogBuf { buf: #buf }) => { let _: Option<()> = (|| { let #size = ::aya_log_ebpf::write_record_header( - buf, + #buf, #target, #lvl, module_path!(), @@ -161,11 +161,13 @@ pub(crate) fn log(args: LogArgs, level: Option) -> Result