浏览代码

fix: type error

GyDi 2 年之前
父节点
当前提交
c77db23586
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src-tauri/src/cmds.rs

+ 1 - 1
src-tauri/src/cmds.rs

@@ -181,7 +181,7 @@ pub fn grant_permission(core: String) -> CmdResult {
     return wrap_err!(manager::grant_permission(core));
     return wrap_err!(manager::grant_permission(core));
 
 
     #[cfg(not(target_os = "macos"))]
     #[cfg(not(target_os = "macos"))]
-    return Err("Unsupported target");
+    return Err("Unsupported target".into());
 }
 }
 
 
 /// get the system proxy
 /// get the system proxy