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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user