فهرست منبع

fix: rust lint

keiko233 1 سال پیش
والد
کامیت
84d3c3f7eb
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src-tauri/src/cmds.rs

+ 2 - 2
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());