mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-11-22 20:32:15 +08:00
refactor: replace singleton_lazy with singleton macro across multiple modules
This commit is contained in:
@@ -7,7 +7,7 @@ use tokio::fs;
|
||||
|
||||
use crate::config::{Config, ConfigType};
|
||||
use crate::core::handle;
|
||||
use crate::singleton_lazy;
|
||||
use crate::singleton;
|
||||
use crate::utils::dirs;
|
||||
use clash_verge_logging::{Type, logging};
|
||||
|
||||
@@ -361,8 +361,4 @@ fn contains_any_keyword<'a>(buf: &'a [u8], keywords: &'a [&str]) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
singleton_lazy!(
|
||||
CoreConfigValidator,
|
||||
CORECONFIGVALIDATOR,
|
||||
CoreConfigValidator::new
|
||||
);
|
||||
singleton!(CoreConfigValidator, CORECONFIGVALIDATOR);
|
||||
|
||||
Reference in New Issue
Block a user