diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-03-23 00:07:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 23:07:26 +0000 |
commit | 7f25d130c1e4ec8f57d91f87cb5420696e9ed774 (patch) | |
tree | cd5ca482745e6547b7766243cff3804b921d59cd /src-tauri/src/lib.rs | |
parent | 5e096f84e59eae0ed6b7bb758149c491c87538a6 (diff) | |
download | FlightCore-7f25d130c1e4ec8f57d91f87cb5420696e9ed774.tar.gz FlightCore-7f25d130c1e4ec8f57d91f87cb5420696e9ed774.zip |
fix: Remove unnecessary `.to_string()` (#230)
Thanks clippy <3
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 5bdc82c4..964039eb 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -385,7 +385,7 @@ pub fn get_enabled_mods(game_install: GameInstall) -> Result<serde_json::value:: // Parse JSON let res: serde_json::Value = match serde_json::from_str(&data) { Ok(result) => result, - Err(err) => return Err(format!("Failed to read JSON due to: {}", err.to_string())), + Err(err) => return Err(format!("Failed to read JSON due to: {}", err)), }; // Return parsed data |