Skip to content

Commit

Permalink
fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed Apr 23, 2024
1 parent 3f50eaa commit a6b5b3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/ruff_workspace/src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl<'a> Resolver<'a> {
.router
.insert(format!("{}/{{*filepath}}", path), self.settings.len() - 1)
{
Ok(_) => {}
Ok(()) => {}
Err(InsertError::Conflict { .. }) => {}
Err(_) => unreachable!("file paths are escaped before being inserted in the router"),
}
Expand Down Expand Up @@ -273,7 +273,7 @@ fn resolve_configuration(
let options = pyproject::load_options(&path)?;

let project_root = relativity.resolve(&path);
let configuration = Configuration::from_options(options, Some(&path), &project_root)?;
let configuration = Configuration::from_options(options, Some(&path), project_root)?;

// If extending, continue to collect.
next = configuration.extend.as_ref().map(|extend| {
Expand Down Expand Up @@ -308,7 +308,7 @@ fn resolve_scoped_settings<'a>(
) -> Result<(&'a Path, Settings)> {
let configuration = resolve_configuration(pyproject, relativity, transformer)?;
let project_root = relativity.resolve(pyproject);
let settings = configuration.into_settings(&project_root)?;
let settings = configuration.into_settings(project_root)?;
Ok((project_root, settings))
}

Expand Down

0 comments on commit a6b5b3d

Please sign in to comment.