Merge pull request #46 from tauri-apps/fix/clippy

fix: make clippy 1.66 happy
This commit is contained in:
Jonas Kruckenberg authored and GitHub committed 2023-01-06 16:45:18 +01:00
commit b9a06108d8
4 files changed
+13 -13

No files matched your search

+2 -2
View File
@@ -56,13 +56,13 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
.unwrap_or_default();
for allowed in scope.allowed_paths {
// allows the path as is
let _ = fs_scope.allow_file(&allowed);
let _ = fs_scope.allow_file(allowed);
#[cfg(feature = "protocol-asset")]
let _ = asset_protocol_scope.allow_file(allowed);
}
for forbidden in scope.forbidden_patterns {
// forbid the path as is
let _ = fs_scope.forbid_file(&forbidden);
let _ = fs_scope.forbid_file(forbidden);
#[cfg(feature = "protocol-asset")]
let _ = asset_protocol_scope.forbid_file(forbidden);
}