diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-01-22 19:14:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-22 19:14:55 +0100 |
commit | a69d79bb4be922faebd3b43fe2fd6d14d916ed16 (patch) | |
tree | 5cfaa4a7b0ebaa7a80d9d228305ffda6f81b05c9 /src-tauri/src/main.rs | |
parent | 5ba596cc67856b0a6335130b1e43808adaba978e (diff) | |
download | FlightCore-a69d79bb4be922faebd3b43fe2fd6d14d916ed16.tar.gz FlightCore-a69d79bb4be922faebd3b43fe2fd6d14d916ed16.zip |
chore: Autoformat Rust source files (#143)
Diffstat (limited to 'src-tauri/src/main.rs')
-rw-r--r-- | src-tauri/src/main.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 0e62aa3c..4eab7a00 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -9,7 +9,10 @@ use std::{ time::Duration, }; -use app::{*, constants::{APP_USER_AGENT, MASTER_SERVER_URL, SERVER_BROWSER_ENDPOINT}}; +use app::{ + constants::{APP_USER_AGENT, MASTER_SERVER_URL, SERVER_BROWSER_ENDPOINT}, + *, +}; mod github; use github::release_notes::{ @@ -309,11 +312,9 @@ async fn clean_up_download_folder_caller( } } - /// Gets server and playercount from master server API #[tauri::command] async fn get_server_player_count() -> Result<(i32, usize), String> { - let url = format!("{MASTER_SERVER_URL}{SERVER_BROWSER_ENDPOINT}"); let client = reqwest::Client::new(); let res = client |