Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
zbowling committed Dec 29, 2024
1 parent 4d412ed commit b0c4438
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/cli/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ fn replace_nushell_completion(script: &str) -> Cow<str> {
${1}@"nu-complete BIN_NAME run"${2}@"nu-complete BIN_NAME run environment""#;

let re = Regex::new(pattern.as_str()).unwrap();
re.replace(script, replacement.replace("BIN_NAME", &bin_name))
re.replace(script, replacement.replace("BIN_NAME", bin_name))
}

#[cfg(test)]
Expand Down
6 changes: 3 additions & 3 deletions tests/integration_rust/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,15 +264,15 @@ impl PixiControl {
pub fn manifest_path(&self) -> PathBuf {
// Either pixi.toml or pyproject.toml
if self.project_path().join(consts::PROJECT_MANIFEST).exists() {
return self.project_path().join(consts::PROJECT_MANIFEST);
self.project_path().join(consts::PROJECT_MANIFEST)
} else if self
.project_path()
.join(consts::PYPROJECT_MANIFEST)
.exists()
{
return self.project_path().join(consts::PYPROJECT_MANIFEST);
self.project_path().join(consts::PYPROJECT_MANIFEST)
} else {
return self.project_path().join(consts::PROJECT_MANIFEST);
self.project_path().join(consts::PROJECT_MANIFEST)
}
}

Expand Down

0 comments on commit b0c4438

Please sign in to comment.