Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Dec 12, 2023
1 parent b1b92a7 commit 16019fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,7 @@ fn detect_venv(target: &Target) -> Result<PathBuf> {
match (env::var_os("VIRTUAL_ENV"), env::var_os("CONDA_PREFIX")) {
(Some(dir), None) => return Ok(PathBuf::from(dir)),
(None, Some(dir)) => return Ok(PathBuf::from(dir)),
(Some(venv), Some(conda)) if venv == conda => {
return Ok(PathBuf::from(venv))
}
(Some(venv), Some(conda)) if venv == conda => return Ok(PathBuf::from(venv)),
(Some(_), Some(_)) => {
bail!("Both VIRTUAL_ENV and CONDA_PREFIX are set. Please unset one of them")
}
Expand Down

0 comments on commit 16019fe

Please sign in to comment.