From d0ce41fd840732154278ce8a71ef772a59c87014 Mon Sep 17 00:00:00 2001 From: Lahfir Date: Sun, 12 Jul 2026 17:37:25 -0700 Subject: [PATCH] fix: keep Windows private file build warning-free --- crates/core/src/private_file_parent.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/core/src/private_file_parent.rs b/crates/core/src/private_file_parent.rs index ba9d7e80..257cceb5 100644 --- a/crates/core/src/private_file_parent.rs +++ b/crates/core/src/private_file_parent.rs @@ -1,4 +1,4 @@ -use std::path::{Path, PathBuf}; +use std::path::Path; pub(super) fn ensure_private(path: &Path) -> std::io::Result<()> { #[cfg(windows)] @@ -54,7 +54,7 @@ pub(super) fn ensure_user(path: &Path) -> std::io::Result<()> { fn ensure_directory_path(path: &Path) -> std::io::Result<()> { use std::os::unix::fs::{DirBuilderExt, MetadataExt}; - let mut current = PathBuf::new(); + let mut current = std::path::PathBuf::new(); for component in path.components() { match component { std::path::Component::CurDir => continue,