diff --git a/src/meta/windows_utils.rs b/src/meta/windows_utils.rs index 3912868..5095022 100644 --- a/src/meta/windows_utils.rs +++ b/src/meta/windows_utils.rs @@ -13,7 +13,7 @@ use super::{Owner, Permissions}; const BUF_SIZE: u32 = 256; -pub fn get_file_data(path: &PathBuf) -> Result<(Owner, Permissions), io::Error> { +pub fn get_file_data(path: &Path) -> Result<(Owner, Permissions), io::Error> { // Overall design: // This function allocates some data with GetNamedSecurityInfoW, // manipulates it only through WinAPI calls (treating the pointers as