Skip to content

Commit 9aa6886

Browse files
committed
.
1 parent c8c64c2 commit 9aa6886

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/pet-poetry/src/lib.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ fn is_poetry_cache_environment(path: &Path) -> bool {
6767
/// We check if the parent directory has a pyproject.toml with Poetry configuration.
6868
fn is_in_project_poetry_environment(path: &Path) -> bool {
6969
// Check if this is a .venv directory
70-
let dir_name = path.file_name().and_then(|n| n.to_str()).unwrap_or_default();
70+
let dir_name = path
71+
.file_name()
72+
.and_then(|n| n.to_str())
73+
.unwrap_or_default();
7174
if dir_name != ".venv" {
7275
return false;
7376
}
@@ -252,10 +255,7 @@ impl Locator for Poetry {
252255

253256
// Check for in-project .venv Poetry environment
254257
if is_in_project_poetry_environment(prefix) {
255-
trace!(
256-
"Identified in-project Poetry environment: {:?}",
257-
prefix
258-
);
258+
trace!("Identified in-project Poetry environment: {:?}", prefix);
259259
// For in-project .venv, the project directory is the parent
260260
let project_dir = prefix.parent().unwrap_or(prefix).to_path_buf();
261261
return environment::create_poetry_env(

0 commit comments

Comments
 (0)