refactor(tauri): Improve builder initialization readability

The main application setup in src-tauri/src/main.rs has been refactored to enhance local variable scoping. By assigning the result of tauri::Builder::default() to a named variable, the code becomes clearer and more readable without changing runtime behavior.
This commit is contained in:
2026-07-11 17:42:22 +02:00
parent 3491b8efb3
commit a6e7e991dd
+1 -1
View File
@@ -52,7 +52,7 @@ async fn main() {
return;
}
tauri::Builder::default()
let builder =tauri::Builder::default()
.plugin(tauri_plugin_single_instance::init(|app, _, _| {
#[cfg(desktop)]
let _ = app