diff --git a/crates/core/src/private_file.rs b/crates/core/src/private_file.rs index 0668072..cbbea51 100644 --- a/crates/core/src/private_file.rs +++ b/crates/core/src/private_file.rs @@ -10,7 +10,7 @@ static TEMP_COUNTER: AtomicU64 = AtomicU64::new(0); #[cfg(windows)] #[path = "private_file_windows.rs"] -mod windows; +pub(crate) mod windows; pub(crate) fn open_private_lock(path: &Path, create: bool) -> std::io::Result { #[cfg(windows)] diff --git a/crates/core/src/private_file_windows.rs b/crates/core/src/private_file_windows.rs index a7c6f21..4f30433 100644 --- a/crates/core/src/private_file_windows.rs +++ b/crates/core/src/private_file_windows.rs @@ -62,7 +62,7 @@ pub(super) fn create_new(path: &Path) -> std::io::Result { open_private(path, TEMP_ACCESS, CREATE_NEW, false) } -pub(super) fn ensure_private_parent(path: &Path) -> std::io::Result<()> { +pub(crate) fn ensure_private_parent(path: &Path) -> std::io::Result<()> { let path = path::normalized(path)?; let security = PrivateSecurity::new_directory()?; guard::with_ancestor_guards(&path, true, Some(&security), |guards| { @@ -70,7 +70,7 @@ pub(super) fn ensure_private_parent(path: &Path) -> std::io::Result<()> { }) } -pub(super) fn ensure_user_parent(path: &Path) -> std::io::Result<()> { +pub(crate) fn ensure_user_parent(path: &Path) -> std::io::Result<()> { let path = path::normalized(path)?; let security = PrivateSecurity::new_directory()?; guard::with_ancestor_guards(&path, true, Some(&security), |_| Ok(()))