diff options
Diffstat (limited to 'src/filesystems/mod.rs')
-rw-r--r-- | src/filesystems/mod.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/filesystems/mod.rs b/src/filesystems/mod.rs index d04b991..62f26e1 100644 --- a/src/filesystems/mod.rs +++ b/src/filesystems/mod.rs @@ -12,13 +12,11 @@ pub use { use { crossterm::style::Color, - lazy_static::lazy_static, + once_cell::sync::Lazy, std::sync::Mutex, }; -lazy_static! { - pub static ref MOUNTS: Mutex<MountList> = Mutex::new(MountList::new()); -} +pub static MOUNTS: Lazy<Mutex<MountList>> = Lazy::new(|| Mutex::new(MountList::new())); pub fn clear_cache() { let mut mount_list = MOUNTS.lock().unwrap(); |