mirror of https://github.com/astral-sh/ruff
Fix cargo clippy
This commit is contained in:
parent
49dc8231be
commit
04b9c0a31d
|
|
@ -11,7 +11,7 @@ use crate::{Configuration, Settings};
|
|||
|
||||
/// Print the user-facing configuration settings.
|
||||
pub fn show_settings(
|
||||
configuration: Configuration,
|
||||
configuration: &Configuration,
|
||||
project_root: Option<&PathBuf>,
|
||||
pyproject: Option<&PathBuf>,
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ fn inner_main() -> Result<ExitCode> {
|
|||
return Ok(ExitCode::FAILURE);
|
||||
}
|
||||
if cli.show_settings {
|
||||
commands::show_settings(configuration, project_root.as_ref(), pyproject.as_ref());
|
||||
commands::show_settings(&configuration, project_root.as_ref(), pyproject.as_ref());
|
||||
return Ok(ExitCode::SUCCESS);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue