diff --git a/src-tauri/src/core/core.rs b/src-tauri/src/core/core.rs index 02f4ed269..5469d968d 100644 --- a/src-tauri/src/core/core.rs +++ b/src-tauri/src/core/core.rs @@ -14,6 +14,7 @@ use crate::{ }; use anyhow::Result; use chrono::Local; +use parking_lot::Mutex; use std::{ fmt, fs::{create_dir_all, File}, @@ -22,7 +23,6 @@ use std::{ sync::Arc, }; use tauri_plugin_shell::{process::CommandChild, ShellExt}; -use tokio::sync::Mutex; #[derive(Debug)] pub struct CoreManager { diff --git a/src-tauri/src/ipc/memory.rs b/src-tauri/src/ipc/memory.rs index 7fc7b2d8c..6869754e5 100644 --- a/src-tauri/src/ipc/memory.rs +++ b/src-tauri/src/ipc/memory.rs @@ -1,6 +1,7 @@ +use parking_lot::RwLock; use serde::{Deserialize, Serialize}; use std::{sync::Arc, time::Instant}; -use tokio::{sync::RwLock, time::Duration}; +use tokio::time::Duration; use crate::{ ipc::monitor::{IpcStreamMonitor, MonitorData, StreamingParser}, diff --git a/src-tauri/src/ipc/traffic.rs b/src-tauri/src/ipc/traffic.rs index a7a329a1b..11ed1e0e7 100644 --- a/src-tauri/src/ipc/traffic.rs +++ b/src-tauri/src/ipc/traffic.rs @@ -1,6 +1,7 @@ +use parking_lot::RwLock; use serde::{Deserialize, Serialize}; use std::{sync::Arc, time::Instant}; -use tokio::{sync::RwLock, time::Duration}; +use tokio::time::Duration; use crate::{ ipc::monitor::{IpcStreamMonitor, MonitorData, StreamingParser}, diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 37c3628b7..df8210f6e 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -181,9 +181,7 @@ mod app_init { builder = builder.plugin(tauri_plugin_devtools::init()); } - builder.manage(std::sync::Mutex::new( - state::lightweight::LightWeightState::default(), - )) + builder.manage(Mutex::new(state::lightweight::LightWeightState::default())) } /// Setup deep link handling