aboutsummaryrefslogtreecommitdiff
path: root/common/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/lib.rs')
-rw-r--r--common/src/lib.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/src/lib.rs b/common/src/lib.rs
index d06c40c..7403347 100644
--- a/common/src/lib.rs
+++ b/common/src/lib.rs
@@ -3,6 +3,7 @@
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
Copyright (C) 2024 metamuffin <metamuffin.org>
*/
+#![allow(clippy::needless_borrows_for_generic_args)]
pub mod config;
pub mod helpers;
pub mod r#impl;
@@ -282,17 +283,16 @@ impl TraktKind {
}
}
}
-impl ToString for TraktKind {
- fn to_string(&self) -> String {
- match self {
+impl Display for TraktKind {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
+ f.write_str(match self {
TraktKind::Movie => "Movie",
TraktKind::Show => "Show",
TraktKind::Season => "Season",
TraktKind::Episode => "Episode",
TraktKind::Person => "Person",
TraktKind::User => "User",
- }
- .to_string()
+ })
}
}
impl Display for ObjectIds {