diff --git a/Cargo.lock b/Cargo.lock index 9588858..8e056b6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -961,7 +961,6 @@ dependencies = [ "futures", "iced", "iced_aw", - "lazy_static", "log", "open", "parse_link_header", diff --git a/Cargo.toml b/Cargo.toml index 4dc02cb..be24f5d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,6 @@ flate2 = "1.0" fs_extra = "1.3.0" futures = "0.3" iced_aw = { git = "https://github.com/iced-rs/iced_aw.git", rev = "9ed46bffd0d819f22e07db6c282fbef733007df5", default-features = false, features = ["tabs", "icons"] } -lazy_static = "1.5" log = { version = "0.4.22", features = ["std"] } open = "5" parse_link_header = "0.3" diff --git a/src/plugins_frame.rs b/src/plugins_frame.rs index 5ab8a3f..d066eed 100644 --- a/src/plugins_frame.rs +++ b/src/plugins_frame.rs @@ -5,15 +5,13 @@ use anyhow::Result; use espim::Plugin as EspimPlugin; use iced::widget::{button, image, Column, Container, Image, Row, Scrollable, Space, Text}; use iced::{alignment, theme, Alignment, Color, Command, Element, Length}; -use lazy_static::lazy_static; use regex::Regex; use std::fs::File; use std::io::{Read, Write}; use std::path::PathBuf; +use std::sync::LazyLock; -lazy_static! { - static ref CACHE_FILENAME_REGEX: Regex = Regex::new(r"[^\w.-]").unwrap(); -} +static CACHE_FILENAME_REGEX: LazyLock = LazyLock::new(|| Regex::new(r"[^\w.-]").unwrap()); #[derive(Debug, Clone)] pub enum PluginsFrameState {