fix: resolve clippy warnings

This commit is contained in:
objz committed 2026-02-07 17:08:47 +01:00
1 parent 0ec95e51e4
commit 4f597d04b2
12 files changed
+48 -42

No files matched your search

+2 -2
View File
@@ -4,8 +4,8 @@ use std::sync::{Arc, Mutex};
const MAX_LINES: usize = 2000;
pub static LOGS: Lazy<Arc<Mutex<HashMap<String, VecDeque<String>>>>> =
Lazy::new(|| Arc::new(Mutex::new(HashMap::new())));
type LogsMap = Arc<Mutex<HashMap<String, VecDeque<String>>>>;
pub static LOGS: Lazy<LogsMap> = Lazy::new(|| Arc::new(Mutex::new(HashMap::new())));
pub fn push(name: &str, line: impl Into<String>) {
if let Ok(mut logs) = LOGS.lock() {