Jelajahi Sumber

fix: type error

GyDi 2 tahun lalu
induk
melakukan
c77db23586
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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));
 
     #[cfg(not(target_os = "macos"))]
-    return Err("Unsupported target");
+    return Err("Unsupported target".into());
 }
 
 /// get the system proxy