Fixed some warnings #11

Merged
phoenix merged 13 commits from warning_fixes into devel 2025-03-22 18:24:09 +00:00
2 changed files with 8 additions and 9 deletions
Showing only changes of commit 6de1f9904c - Show all commits

View File

@@ -157,9 +157,7 @@ impl Song {
let filename_len = 10;
let file_extension = match typ {
types::Types::DefaultMusicExtension => {
String::from(constants::DEFAULTMUSICEXTENSION)
}
types::Types::DefaultMusicExtension => String::from(constants::DEFAULTMUSICEXTENSION),
types::Types::WavExtension => String::from(constants::WAVEXTENSION),
types::Types::FlacExtension => String::from(constants::FLACEXTENSION),

View File

@@ -1,6 +1,7 @@
pub enum Types {
DefaultMusicExtension,
WavExtension,
FlacExtension,
MPThreeExtension,
}
pub enum Types {
DefaultMusicExtension,
WavExtension,
FlacExtension,
MPThreeExtension,
}