From c77db23586ea3fb4f2bdfda8aed92af408748696 Mon Sep 17 00:00:00 2001 From: GyDi Date: Thu, 16 Mar 2023 13:51:46 +0800 Subject: [PATCH] fix: type error --- src-tauri/src/cmds.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/src/cmds.rs b/src-tauri/src/cmds.rs index 3c721a5..8140b24 100644 --- a/src-tauri/src/cmds.rs +++ b/src-tauri/src/cmds.rs @@ -181,7 +181,7 @@ pub fn grant_permission(core: String) -> CmdResult { return wrap_err!(manager::grant_permission(core)); #[cfg(not(target_os = "macos"))] - return Err("Unsupported target"); + return Err("Unsupported target".into()); } /// get the system proxy