From 6e383313280dd6c6f88b7c1f5239a453492cebf7 Mon Sep 17 00:00:00 2001 From: keiko233 Date: Wed, 15 Nov 2023 13:49:06 +0800 Subject: [PATCH] fix: rust lint --- src-tauri/src/cmds.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/cmds.rs b/src-tauri/src/cmds.rs index 2e3ca841..4492d414 100644 --- a/src-tauri/src/cmds.rs +++ b/src-tauri/src/cmds.rs @@ -176,9 +176,9 @@ pub async fn restart_sidecar() -> CmdResult { } #[tauri::command] -pub fn grant_permission(core: String) -> CmdResult { +pub fn grant_permission(_core: String) -> CmdResult { #[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")))] return Err("Unsupported target".into());