aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/mod_management/mod.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-03-26 20:25:20 +0200
committerGitHub <noreply@github.com>2023-03-26 20:25:20 +0200
commitcec86b682d68016e2142b27e7674d77807c3330c (patch)
tree26e8fcc9c8fe305aa8301fdca819644300b1c4ee /src-tauri/src/mod_management/mod.rs
parent28da58763c7d69c9837da79748e175b04b2bf557 (diff)
downloadFlightCore-cec86b682d68016e2142b27e7674d77807c3330c.tar.gz
FlightCore-cec86b682d68016e2142b27e7674d77807c3330c.zip
fix: Remove redundant string conversions (#242)
As pointed out by clippy
Diffstat (limited to 'src-tauri/src/mod_management/mod.rs')
-rw-r--r--src-tauri/src/mod_management/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-tauri/src/mod_management/mod.rs b/src-tauri/src/mod_management/mod.rs
index eff3ec01..41b2c13b 100644
--- a/src-tauri/src/mod_management/mod.rs
+++ b/src-tauri/src/mod_management/mod.rs
@@ -343,10 +343,10 @@ pub async fn fc_download_mod_and_install(
match fc_download_mod_and_install(game_install.clone(), dep).await {
Ok(()) => (),
Err(err) => {
- if err.to_string() == "Cannot install Northstar as a mod!" {
+ if err == "Cannot install Northstar as a mod!" {
continue; // For Northstar as a dependency, we just skip it
} else {
- return Err(err.to_string());
+ return Err(err);
}
}
};