mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-20 22:58:32 +08:00
refactor: cargo clippy
This commit is contained in:
1 parent
17d8691300
commit
3a883b9e41
19 files changed
+96
-122
No files matched your search
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user