From d5e58781be5d9b78fc29bb9cca3139eb3e96f0e7 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Fri, 3 Jan 2025 08:44:11 -0800 Subject: [PATCH] Fix another clap deprecation warning --- src/options.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/options.rs b/src/options.rs index c3862a539f..8026df4759 100644 --- a/src/options.rs +++ b/src/options.rs @@ -785,7 +785,10 @@ pub(crate) fn parse_args() -> Mode { strip_cr, }; - let args: Vec<_> = matches.values_of_os("paths").unwrap_or_default().collect(); + let args = matches + .get_raw("paths") + .unwrap_or_default() + .collect::>(); info!("CLI arguments: {:?}", args); // Print git environment variables so we can see the additional