From 78a7c80ca00c4791977be6e8177e8e14b80d4a7a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Dec 2025 08:03:46 +0000 Subject: [PATCH 1/3] Initial plan From 9163e95dd8652929422fdda12fa3e2f4e22a3611 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Dec 2025 08:06:51 +0000 Subject: [PATCH 2/3] Fix clippy uninlined_format_args warnings Co-authored-by: Mic92 <96200+Mic92@users.noreply.github.com> --- src/instantiate.rs | 2 +- src/parser.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/instantiate.rs b/src/instantiate.rs index 7b7a522..b9678c6 100644 --- a/src/instantiate.rs +++ b/src/instantiate.rs @@ -119,7 +119,7 @@ fn run_nix_instantiate(mut cmd: Command, gcroot_path: &Path) -> Result { .extension() .is_some_and(|ext| ext.eq_ignore_ascii_case("drv")) { - bail!("nix-instantiate did not return a .drv file: {}", drv_path); + bail!("nix-instantiate did not return a .drv file: {drv_path}"); } Ok(drv_path) diff --git a/src/parser.rs b/src/parser.rs index df07d82..95c1d1c 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -292,7 +292,7 @@ impl<'a> Parser<'a> { ch, self.pos )), - None => Err(anyhow!("Expected '{}' but reached end of input", expected)), + None => Err(anyhow!("Expected '{expected}' but reached end of input")), } } From 01395c93b5bdd3e70a6234bcfcbc84aa2a125bd8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 24 Dec 2025 08:29:35 +0000 Subject: [PATCH 3/3] Fix remaining clippy uninlined_format_args warnings Co-authored-by: Mic92 <96200+Mic92@users.noreply.github.com> --- src/main.rs | 2 +- src/parser.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7683bc1..70d4f84 100644 --- a/src/main.rs +++ b/src/main.rs @@ -59,7 +59,7 @@ fn main() -> Result<()> { } arg => { if arg.starts_with('-') { - return Err(anyhow!("Unknown option: {}", arg)); + return Err(anyhow!("Unknown option: {arg}")); } paths.push(PathBuf::from(arg)); } diff --git a/src/parser.rs b/src/parser.rs index 95c1d1c..4274915 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -265,7 +265,7 @@ impl<'a> Parser<'a> { self.pos += expected.len(); Ok(()) } else { - Err(anyhow!("Expected '{}' at position {}", expected, self.pos)) + Err(anyhow!("Expected '{expected}' at position {}", self.pos)) } }