aboutsummaryrefslogtreecommitdiff
path: root/src-tauri
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2024-02-10 11:51:09 +0100
committerGitHub <noreply@github.com>2024-02-10 11:51:09 +0100
commitdc2e151e563a6b4b363c465f6da53577ef0a24d6 (patch)
treec27f96e3247c687f28e82380cce4065428e4f822 /src-tauri
parent71fdce1e467984675a889218d7f93dc94cbe206d (diff)
downloadFlightCore-dc2e151e563a6b4b363c465f6da53577ef0a24d6.tar.gz
FlightCore-dc2e151e563a6b4b363c465f6da53577ef0a24d6.zip
fix: Resolve clippy warning (#791)
regarding too deeply nested code blocks
Diffstat (limited to 'src-tauri')
-rw-r--r--src-tauri/src/main.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 1fc55678..4fd05c9e 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -65,7 +65,7 @@ fn main() {
},
));
- match tauri::Builder::default()
+ let tauri_builder_res = tauri::Builder::default()
.plugin(tauri_plugin_store::Builder::default().build())
.setup(|app| {
let app_handle = app.app_handle();
@@ -161,8 +161,9 @@ fn main() {
util::kill_northstar,
util::open_repair_window,
])
- .run(tauri::generate_context!())
- {
+ .run(tauri::generate_context!());
+
+ match tauri_builder_res {
Ok(()) => (),
Err(err) => {
// Failed to launch system native web view