Skip to content

Commit 43242f6

Browse files
committed
fix (core): 修复代码使用错误
1 parent db58332 commit 43242f6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src-tauri/src/execution.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ pub async fn execute_code(
344344
let _ = plugin.post_execute_hook(&mut result);
345345

346346
if result.success
347-
&& result.stdout == String::from("END-NO-OUTPUT")
348-
&& result.stderr == String::from("END-NO-OUTPUT")
347+
&& result.stdout == *"END-NO-OUTPUT"
348+
&& result.stderr == *"END-NO-OUTPUT"
349349
{
350350
let _ = app.emit(
351351
"code-output",

src-tauri/src/setup/menus/developer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn handle_developer_menu_event(app: &AppHandle, event_id: &str) {
3434
"open-devtools" => {
3535
info!("开发者 -> 打开调试器");
3636
if let Some(window) = app.get_webview_window("main") {
37-
let _ = window.open_devtools();
37+
window.open_devtools();
3838
}
3939
}
4040
_ => {}

0 commit comments

Comments
 (0)