diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2024-05-02 18:06:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-02 18:06:01 +0200 |
commit | dc650fc41aac3f42c099a596a038b6f1d0c9d43f (patch) | |
tree | 247923c891824b91117f47a7db90e930ead1b326 /src-tauri/src/mod_management | |
parent | bf704f46585b19a9896f7c89e019c7510716c5a9 (diff) | |
download | FlightCore-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/src/mod_management')
-rw-r--r-- | src-tauri/src/mod_management/mod.rs | 6 |
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) } } |