From 11855472df45ab8cd86b4fa7e9f116093c77b5e4 Mon Sep 17 00:00:00 2001 From: Steve Cook Date: Sat, 16 Jul 2022 01:04:18 -0400 Subject: [PATCH] Fix another indexing issue --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 5ca3595..4742229 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,7 +27,7 @@ fn main() { { format.to_string() } else { - arg.to_string() + input.cargo_opts.remove(pos).to_string() }; if !format.starts_with("json") { eprintln!("error: non-JSON `message-format` is not supported");