refactor: cargo clippy

This commit is contained in:
MystiPanda committed 2024-01-10 17:36:35 +08:00
1 parent 17d8691300
commit 3a883b9e41
19 files changed
+96 -122

No files matched your search

-8
View File
@@ -92,14 +92,6 @@ pub fn clash_pid_path() -> Result<PathBuf> {
Ok(app_home_dir()?.join("clash.pid"))
}
#[cfg(target_os = "linux")]
pub fn local_applications_dir() -> Result<PathBuf> {
use tauri::api::path::home_dir;
Ok(home_dir()
.ok_or(anyhow::anyhow!("failed to get home dir"))?
.join(".local/share/applications"))
}
#[cfg(windows)]
pub fn service_dir() -> Result<PathBuf> {
Ok(app_home_dir()?.join("service"))