From b0c4438fe11bc6f9cbbc273c71c21e3880448354 Mon Sep 17 00:00:00 2001 From: Zac Bowling Date: Sun, 29 Dec 2024 15:31:08 -0800 Subject: [PATCH] clippy --- src/cli/completion.rs | 2 +- tests/integration_rust/common/mod.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cli/completion.rs b/src/cli/completion.rs index a2ca508b9..3eabb613d 100644 --- a/src/cli/completion.rs +++ b/src/cli/completion.rs @@ -170,7 +170,7 @@ fn replace_nushell_completion(script: &str) -> Cow { ${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)] diff --git a/tests/integration_rust/common/mod.rs b/tests/integration_rust/common/mod.rs index a580431a5..a83742ecd 100644 --- a/tests/integration_rust/common/mod.rs +++ b/tests/integration_rust/common/mod.rs @@ -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) } }