mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-06 07:13:44 +08:00
fix: rust lint
This commit is contained in:
parent
c4bc9aea22
commit
6e38331328
@ -176,9 +176,9 @@ pub async fn restart_sidecar() -> CmdResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub fn grant_permission(core: String) -> CmdResult {
|
pub fn grant_permission(_core: String) -> CmdResult {
|
||||||
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
#[cfg(any(target_os = "macos", target_os = "linux"))]
|
||||||
return wrap_err!(manager::grant_permission(core));
|
return wrap_err!(manager::grant_permission(_core));
|
||||||
|
|
||||||
#[cfg(not(any(target_os = "macos", target_os = "linux")))]
|
#[cfg(not(any(target_os = "macos", target_os = "linux")))]
|
||||||
return Err("Unsupported target".into());
|
return Err("Unsupported target".into());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user