Selaa lähdekoodia

docs: Update tauri::app::Builder::setup example (#10463)

This resolves a warning emitted by following the example code: warning:
unused `Result` that must be used.
deadmeu 1 vuosi sitten
vanhempi
sitoutus
699319d8a7
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      core/tauri/src/app.rs

+ 1 - 1
core/tauri/src/app.rs

@@ -1342,7 +1342,7 @@ use tauri::Manager;
 tauri::Builder::default()
   .setup(|app| {
     let main_window = app.get_window("main").unwrap();
-    main_window.set_title("Tauri!");
+    main_window.set_title("Tauri!")?;
     Ok(())
   });
 ```