diff --git a/common/filesystem/src/lib.rs b/common/filesystem/src/lib.rs index b7113d493..6305671c5 100644 --- a/common/filesystem/src/lib.rs +++ b/common/filesystem/src/lib.rs @@ -102,7 +102,7 @@ pub fn restrict_file_permissions>(path: P) -> Result<(), Error> { .as_ref() .to_str() .ok_or(Error::UnableToObtainFilePath)?; - let mut acl = ACL::from_file_path(&path_str, false).map_err(Error::UnableToRetrieveACL)?; + let mut acl = ACL::from_file_path(path_str, false).map_err(Error::UnableToRetrieveACL)?; let owner_sid = windows_acl::helper::string_to_sid(OWNER_SID_STR).map_err(Error::UnableToConvertSID)?;