From 3084430e326963c783db99eb0c8a7e1b02ce7070 Mon Sep 17 00:00:00 2001 From: Joshua Ferguson Date: Fri, 20 Sep 2024 10:03:09 -0500 Subject: [PATCH] reapplied clippy fix for new msrv --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 12eed4f..cb6b7ba 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,7 +89,7 @@ fn display_stack_trace(msg: &str, stack: &valgrind::xml::Stack) { stack .frames .iter() - .for_each(|frame| eprintln!(" at {}", frame)); + .for_each(|frame| eprintln!(" at {frame}")); } fn main() { @@ -146,11 +146,11 @@ fn main() { { let error = "Error".red().bold(); let info = "Info".cyan().bold(); - eprintln!("{:>12}: looks like the program overflowed its stack", error); - eprintln!("{:>12}: valgrind says:", info); + eprintln!("{error:>12}: looks like the program overflowed its stack"); + eprintln!("{info:>12}: valgrind says:"); output .lines() - .for_each(|line| eprintln!(" {}", line)); + .for_each(|line| eprintln!(" {line}")); 134 // default exit code for stack overflows } Err(e) => {