diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2022-10-20 23:14:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 23:14:11 +0200 |
commit | 5cc82fb80f5f91ed9d4a32a71e090a9a805ff2a9 (patch) | |
tree | 431d14cb0983e78bb8ac870e3ad55088a4d2345e /src-tauri/src/lib.rs | |
parent | 31f26c4dd4a92bb5826ad2af9ccb9808fca40e40 (diff) | |
download | FlightCore-5cc82fb80f5f91ed9d4a32a71e090a9a805ff2a9.tar.gz FlightCore-5cc82fb80f5f91ed9d4a32a71e090a9a805ff2a9.zip |
refactor: Various formatting and fixes (#23)
* refactor: Add error return type
* style: Auto-format
Only minor changes, did not take over all changes from auto-format.
* refactor: Rename function to get FC version number
To make it more clear which version number we're getting
(FlightCore vs Northstar)
Diffstat (limited to 'src-tauri/src/lib.rs')
-rw-r--r-- | src-tauri/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index b249d519..8a97a108 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -231,7 +231,7 @@ async fn do_install(nmod: &thermite::model::Mod, game_path: &std::path::Path) -> pub async fn install_northstar( game_path: &str, northstar_package_name: Option<String>, -) -> Result<String> { +) -> Result<String, String> { let northstar_package_name = match northstar_package_name { Some(northstar_package_name) => { if northstar_package_name.len() <= 1 { |