From 134b425ce603e02930e4077499ac29f346f37032 Mon Sep 17 00:00:00 2001 From: Ethan Girouard Date: Sun, 6 Oct 2024 15:50:21 -0400 Subject: [PATCH] Remove unused MediaType --- src/lib.rs | 1 - src/media_type.rs | 20 -------------------- 2 files changed, 21 deletions(-) delete mode 100644 src/media_type.rs diff --git a/src/lib.rs b/src/lib.rs index 474fb99..95ac8ca 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -15,7 +15,6 @@ pub mod users; pub mod search; pub mod fileserv; pub mod error_template; -pub mod media_type; pub mod api; pub mod upload; pub mod util; diff --git a/src/media_type.rs b/src/media_type.rs deleted file mode 100644 index f97c5c2..0000000 --- a/src/media_type.rs +++ /dev/null @@ -1,20 +0,0 @@ -use serde::{Deserialize, Serialize}; - -/// Differentiates between different types of media -/// Used to display a short text near a corresponging image / title to indicate what type of media it is -#[derive(Serialize, Deserialize)] -pub enum MediaType { - Song, - Album, - Artist, -} - -impl ToString for MediaType { - fn to_string(&self) -> String { - match self { - MediaType::Song => "Song".to_string(), - MediaType::Album => "Album".to_string(), - MediaType::Artist => "Artist".to_string(), - } - } -}