소스 검색

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));
 
     #[cfg(not(target_os = "macos"))]
-    return Err("Unsupported target");
+    return Err("Unsupported target".into());
 }
 
 /// get the system proxy