diff --git a/fish-rust/src/abbrs.rs b/fish-rust/src/abbrs.rs index b71d51179..fcecbedbc 100644 --- a/fish-rust/src/abbrs.rs +++ b/fish-rust/src/abbrs.rs @@ -1,7 +1,7 @@ #![allow(clippy::extra_unused_lifetimes, clippy::needless_lifetimes)] use std::{ collections::HashSet, - sync::{Arc, Mutex, MutexGuard}, + sync::{Mutex, MutexGuard}, }; use crate::wchar::{wstr, WString, L}; @@ -84,8 +84,7 @@ mod abbrs_ffi { } } -static abbrs: Lazy>> = - Lazy::new(|| Arc::new(Mutex::new(Default::default()))); +static abbrs: Lazy> = Lazy::new(|| Mutex::new(Default::default())); pub fn with_abbrs(cb: impl FnOnce(&AbbreviationSet) -> R) -> R { let abbrs_g = abbrs.lock().unwrap();