From ce5b63371cacf5f3395c254b8e08beaf946e6f3e Mon Sep 17 00:00:00 2001 From: Johann Hemmann Date: Thu, 7 Mar 2024 00:25:45 +0100 Subject: [PATCH] cargo clippy --fix --- tests/verify.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/verify.rs b/tests/verify.rs index 5bf3c35..7d7b5c0 100644 --- a/tests/verify.rs +++ b/tests/verify.rs @@ -73,7 +73,7 @@ mod cargo { }; Command::new("cargo") - .args(&["build", "--examples", default_features]) + .args(["build", "--examples", default_features]) .current_dir(firmware_dir) .unwrap() .assert() @@ -115,8 +115,8 @@ mod elf { .collect::>(); // get highest and lowest address of all sections - let min = *addresses.iter().min().ok_or(format!("empty iterator"))?; - let max = *addresses.iter().max().ok_or(format!("empty iterator"))?; + let min = *addresses.iter().min().ok_or("empty iterator".to_string())?; + let max = *addresses.iter().max().ok_or("empty iterator".to_string())?; Ok(min..=max) } @@ -154,7 +154,7 @@ mod elf { FILES .iter() .map(|file_name| format!("{}/target/{}/debug/examples/{}", CRATE, TARGET, file_name)) - .map(|file_path| PathBuf::from(file_path)) + .map(PathBuf::from) .collect() } }