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 <fabianlars@fabianlars.de>
This commit is contained in:
renovate[bot]
2023-04-26 16:40:22 +02:00
committed by GitHub
parent 5b86b0fa9e
commit 57727f262a
3 changed files with 14 additions and 5 deletions
+1 -1
View File
@@ -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]
+1 -1
View File
@@ -101,7 +101,7 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
// 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)