From 16c7f9646a3cbd4472dd2dd54c9486ca1ef1aa1a Mon Sep 17 00:00:00 2001 From: FabianLars Date: Wed, 26 Apr 2023 16:34:54 +0200 Subject: [PATCH] fix compilation --- plugins/persisted-scope/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/persisted-scope/src/lib.rs b/plugins/persisted-scope/src/lib.rs index b7ac5dde..fe2cddf1 100644 --- a/plugins/persisted-scope/src/lib.rs +++ b/plugins/persisted-scope/src/lib.rs @@ -101,7 +101,7 @@ pub fn init() -> TauriPlugin { // We're trying to fix broken .persisted-scope files seamlessly, so we'll be running this on the values read on the saved file. // We will still save some semi-broken values because the scope events are quite spammy and we don't want to reduce runtime performance any further. - let ac = AhoCorasick::new_auto_configured(PATTERNS); + let ac = AhoCorasick::new(PATTERNS).unwrap(/* This should be impossible to fail since we're using a small static input */); if scope_state_path.exists() { let scope: Scope = tauri::api::file::read_binary(&scope_state_path)