Skip to content

Commit

Permalink
Discard changes to crates/ruff_dev/src/format_dev.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser authored Feb 2, 2024
1 parent 1a4aea0 commit ce14e4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/ruff_dev/src/format_dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ce14e4c

Please sign in to comment.