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 0ddc633
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/ruff_workspace/src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ impl<'a> Resolver<'a> {

match self
.router
.insert(format!("{}/{{*filepath}}", path), self.settings.len() - 1)
.insert(format!("{path}/{{*filepath}}"), 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 0ddc633

Please sign in to comment.