From 231c26ef60061f726f27d8e877128264c3d7bee8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 26 Apr 2023 14:41:23 +0000 Subject: [PATCH] fix(deps): update rust crate aho-corasick to v1 (#333) * fix(deps): update rust crate aho-corasick to v1 * fix compilation --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: FabianLars Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/4810029824 Co-authored-by: FabianLars --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fa6784c..4e1f24d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ serde_json.workspace = true tauri.workspace = true log.workspace = true thiserror.workspace = true -aho-corasick = "0.7" +aho-corasick = "1.0" bincode = "1" [features] diff --git a/src/lib.rs b/src/lib.rs index b7ac5dd..fe2cddf 100644 --- a/src/lib.rs +++ b/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)