aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/main.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-03-27 19:49:25 +0200
committerGitHub <noreply@github.com>2023-03-27 17:49:25 +0000
commit784330797d947ec2ff4eb97a7325ac77f3a79e4d (patch)
treeb258828cae62dbbb8917e5d3f3d3cbbf28634e73 /src-tauri/src/main.rs
parent7d5e7b5b6b83ba9ab80f9be984c0d455b51b6502 (diff)
downloadFlightCore-784330797d947ec2ff4eb97a7325ac77f3a79e4d.tar.gz
FlightCore-784330797d947ec2ff4eb97a7325ac77f3a79e4d.zip
fix: Various clippy fixes (#243)
* fix: Remove redundant return * fix: Remove unnecessary borrow * fix: Remove unnecessary import * fix: Use char for single character replacement instead of string * fix: Iterate over values directly instead of key-value pair * fix: Remove unnecessary let binding * fix: Remove unnecessary return statement * fix: Use char for single character replacement instead of string * refactor: Use struct short hand initialization
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r--src-tauri/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index f4712cd4..21045db1 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -166,7 +166,7 @@ fn force_panic() {
#[tauri::command]
/// Returns true if built in debug mode
async fn is_debug_mode() -> bool {
- return cfg!(debug_assertions);
+ cfg!(debug_assertions)
}
#[tauri::command]