aboutsummaryrefslogtreecommitdiff
path: root/src-tauri
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2024-05-02 18:06:01 +0200
committerGitHub <noreply@github.com>2024-05-02 18:06:01 +0200
commitdc650fc41aac3f42c099a596a038b6f1d0c9d43f (patch)
tree247923c891824b91117f47a7db90e930ead1b326 /src-tauri
parentbf704f46585b19a9896f7c89e019c7510716c5a9 (diff)
downloadFlightCore-dc650fc41aac3f42c099a596a038b6f1d0c9d43f.tar.gz
FlightCore-dc650fc41aac3f42c099a596a038b6f1d0c9d43f.zip
fix: Address clippy warning around direct `ToString` implementation (#914)
fix: Address clippy warning https://rust-lang.github.io/rust-clippy/master/index.html#/to_string_trait_impl
Diffstat (limited to 'src-tauri')
-rw-r--r--src-tauri/src/mod_management/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src-tauri/src/mod_management/mod.rs b/src-tauri/src/mod_management/mod.rs
index 049eaa6e..d5b5214e 100644
--- a/src-tauri/src/mod_management/mod.rs
+++ b/src-tauri/src/mod_management/mod.rs
@@ -46,9 +46,9 @@ impl std::str::FromStr for ParsedThunderstoreModString {
}
}
-impl ToString for ParsedThunderstoreModString {
- fn to_string(&self) -> String {
- format!("{}-{}-{}", self.author_name, self.mod_name, self.version)
+impl std::fmt::Display for ParsedThunderstoreModString {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ write!(f, "{}-{}-{}", self.author_name, self.mod_name, self.version)
}
}