Skip to content

Commit 243bd48

Browse files
committed
fix: add missing PathBuf import for unix tests and format code
1 parent 866b9cb commit 243bd48

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

crates/pet/src/find.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ pub fn identify_python_executables_using_locators(
439439
#[cfg(test)]
440440
mod tests {
441441
use std::fs;
442+
#[cfg(unix)]
443+
use std::path::PathBuf;
442444
use tempfile::TempDir;
443445

444446
/// Test that `path().is_dir()` properly follows symlinks to directories.
@@ -599,7 +601,12 @@ mod tests {
599601
let tmp = TempDir::new().expect("Failed to create temp dir");
600602

601603
// Create a "deep" target directory structure
602-
let deep_target = tmp.path().join("deep").join("nested").join("path").join("venv");
604+
let deep_target = tmp
605+
.path()
606+
.join("deep")
607+
.join("nested")
608+
.join("path")
609+
.join("venv");
603610
fs::create_dir_all(&deep_target).expect("Failed to create deep target");
604611

605612
// Create a container with a symlink pointing to the deep target

0 commit comments

Comments
 (0)