diff --git a/src-tauri/src/cmds.rs b/src-tauri/src/cmds.rs
index 3c721a5b56b4f9b5e519ab377fa1f7d6bd3bb5c7..8140b2437b5eabd578ea70db0f07c8a90614da01 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