From 80fbd42e16ca2f0f6cc6e5f8d6f7822610be0f8c Mon Sep 17 00:00:00 2001 From: KD Date: Sat, 29 Mar 2025 09:57:46 -0400 Subject: [PATCH] Added file extension constant and updated constants module --- src/constants.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/constants.rs b/src/constants.rs index 51dd5ea..74dc979 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -1,5 +1,15 @@ + +pub mod file_extensions { + pub mod audio { pub const DEFAULTMUSICEXTENSION: &str = FLACEXTENSION; pub const FLACEXTENSION: &str = ".flac"; pub const WAVEXTENSION: &str = ".wav"; pub const MPTHREEEXTENSION: &str = ".mp3"; + } + + pub mod image { pub const JPGEXTENSION: &str = ".jpg"; +pub const JPEGEXTENSION: &str = ".jpeg"; +pub const PNGEXTENSION: &str = ".png"; + } +}