From ea39115259a2958bd654b5ab5662fc43a54eed01 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Thu, 24 Apr 2025 06:07:18 -0400 Subject: [PATCH] appease `clippy::uninlined-format-args` --- {{project-name}}/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{project-name}}/src/main.rs b/{{project-name}}/src/main.rs index 17fcc10..c1d3483 100644 --- a/{{project-name}}/src/main.rs +++ b/{{project-name}}/src/main.rs @@ -85,7 +85,7 @@ async fn main() -> anyhow::Result<()> { }; let ret = unsafe { libc::setrlimit(libc::RLIMIT_MEMLOCK, &rlim) }; if ret != 0 { - debug!("remove limit on locked memory failed, ret is: {}", ret); + debug!("remove limit on locked memory failed, ret is: {ret}"); } // This will include your eBPF object file as raw bytes at compile-time and load it at @@ -98,7 +98,7 @@ async fn main() -> anyhow::Result<()> { )))?; if let Err(e) = aya_log::EbpfLogger::init(&mut ebpf) { // This can happen if you remove all log statements from your eBPF program. - warn!("failed to initialize eBPF logger: {}", e); + warn!("failed to initialize eBPF logger: {e}"); } {%- case program_type -%} {%- when "kprobe", "kretprobe" %}