diff --git a/plugins/persisted-scope/src/lib.rs b/plugins/persisted-scope/src/lib.rs index ee6903d6..6abd6be2 100644 --- a/plugins/persisted-scope/src/lib.rs +++ b/plugins/persisted-scope/src/lib.rs @@ -89,7 +89,7 @@ pub fn init() -> TauriPlugin { for allowed in &scope.allowed_paths { let allowed = fix_pattern(&ac, allowed); - let _ = fs_scope.allow_file(allowed); + let _ = fs_scope.allow_file(&allowed); #[cfg(feature = "protocol-asset")] let _ = asset_protocol_scope.allow_file(&allowed); }