diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-11-28 19:29:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 19:29:32 +0100 |
commit | 179474d2c2a09abaa8806b9da791121b6a5ca082 (patch) | |
tree | 5c311959e9ef20ee30b00eba6cc612911d9ff7d9 /src-tauri/src/platform_specific | |
parent | c52a78c2687a308187f6ee2fa3ff67486ac7d324 (diff) | |
download | FlightCore-179474d2c2a09abaa8806b9da791121b6a5ca082.tar.gz FlightCore-179474d2c2a09abaa8806b9da791121b6a5ca082.zip |
style: Auto-format all Rust code (#84)
Diffstat (limited to 'src-tauri/src/platform_specific')
-rw-r--r-- | src-tauri/src/platform_specific/linux.rs | 4 | ||||
-rw-r--r-- | src-tauri/src/platform_specific/mod.rs | 1 | ||||
-rw-r--r-- | src-tauri/src/platform_specific/windows.rs | 1 |
3 files changed, 2 insertions, 4 deletions
diff --git a/src-tauri/src/platform_specific/linux.rs b/src-tauri/src/platform_specific/linux.rs index a6d37f22..eb9fbea6 100644 --- a/src-tauri/src/platform_specific/linux.rs +++ b/src-tauri/src/platform_specific/linux.rs @@ -1,14 +1,14 @@ // Linux specific code -use std::process::Command; use regex::Regex; +use std::process::Command; pub fn check_glibc_v() -> f32 { let out = Command::new("/bin/ldd") .arg("--version") .output() .expect("failed to run 'ldd --version'"); - + // parse the output down to just the first line let lddva = String::from_utf8_lossy(&out.stdout); let lddvl: Vec<&str> = lddva.split('\n').collect(); diff --git a/src-tauri/src/platform_specific/mod.rs b/src-tauri/src/platform_specific/mod.rs index 21cac9c2..ef45107e 100644 --- a/src-tauri/src/platform_specific/mod.rs +++ b/src-tauri/src/platform_specific/mod.rs @@ -2,4 +2,3 @@ pub mod windows; pub mod linux; - diff --git a/src-tauri/src/platform_specific/windows.rs b/src-tauri/src/platform_specific/windows.rs index 7627fe4f..2803bf05 100644 --- a/src-tauri/src/platform_specific/windows.rs +++ b/src-tauri/src/platform_specific/windows.rs @@ -1,5 +1,4 @@ /// Windows specific code - use powershell_script::PsScriptBuilder; use regex::Regex; |