Skip to content

Commit 1a29214

Browse files
committed
fix: use fully qualified Path type in Linux-only function
The check_shared_libraries function uses &Path but it's gated with #[cfg(target_os = "linux")]. Use std::path::Path inline to avoid unused import warnings on non-Linux platforms.
1 parent c433748 commit 1a29214

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ fn extract_bundled_postgresql(installation_dir: &PathBuf, pg_version: &str) -> R
463463
/// Check that the postgres binary can find all required shared libraries.
464464
/// Only called on Linux. If ldd is unavailable, silently skips the check.
465465
#[cfg(target_os = "linux")]
466-
fn check_shared_libraries(bin_dir: &Path) -> Result<(), CliError> {
466+
fn check_shared_libraries(bin_dir: &std::path::Path) -> Result<(), CliError> {
467467
let postgres_path = bin_dir.join("postgres");
468468
let output = match std::process::Command::new("ldd")
469469
.arg(&postgres_path)

0 commit comments

Comments
 (0)