From ce14e4cb1a23f030369fe75699cd09a4e2dbe7e8 Mon Sep 17 00:00:00 2001 From: Micha Reiser Date: Fri, 2 Feb 2024 17:53:35 +0100 Subject: [PATCH] Discard changes to crates/ruff_dev/src/format_dev.rs --- crates/ruff_dev/src/format_dev.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ruff_dev/src/format_dev.rs b/crates/ruff_dev/src/format_dev.rs index ba09e862d68dfa..e692d0ecee587d 100644 --- a/crates/ruff_dev/src/format_dev.rs +++ b/crates/ruff_dev/src/format_dev.rs @@ -42,7 +42,9 @@ fn parse_cli(dirs: &[PathBuf]) -> anyhow::Result<(FormatArguments, CliOverrides) let args_matches = FormatCommand::command() .no_binary_name(true) .get_matches_from(dirs); - Ok(FormatCommand::from_arg_matches(&args_matches)?.partition()) + let arguments: FormatCommand = FormatCommand::from_arg_matches(&args_matches)?; + let (cli, overrides) = arguments.partition(); + Ok((cli, overrides)) } /// Find the [`PyprojectConfig`] to use for formatting.