tsk-86: Make MusicTypes and CoverArtTypes singular (#88)
All checks were successful
Release Tagging / release (push) Successful in 34s
Rust Build / Check (push) Successful in 32s
Rust Build / Test Suite (push) Successful in 33s
Rust Build / Rustfmt (push) Successful in 30s
Rust Build / Clippy (push) Successful in 34s
Rust Build / build (push) Successful in 32s
All checks were successful
Release Tagging / release (push) Successful in 34s
Rust Build / Check (push) Successful in 32s
Rust Build / Test Suite (push) Successful in 33s
Rust Build / Rustfmt (push) Successful in 30s
Rust Build / Clippy (push) Successful in 34s
Rust Build / build (push) Successful in 32s
Closes #86 Reviewed-on: #88 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit was merged in pull request #88.
This commit is contained in:
@@ -86,20 +86,20 @@ impl CoverArt {
|
||||
|
||||
/// Generates filename for a CoverArt
|
||||
pub fn generate_filename(
|
||||
typ: crate::types::CoverArtTypes,
|
||||
typ: crate::types::CoverArtType,
|
||||
randomize: bool,
|
||||
) -> Result<String, std::io::Error> {
|
||||
let file_extension = match typ {
|
||||
crate::types::CoverArtTypes::PngExtension => {
|
||||
crate::types::CoverArtType::PngExtension => {
|
||||
String::from(crate::constants::file_extensions::image::PNGEXTENSION)
|
||||
}
|
||||
crate::types::CoverArtTypes::JpegExtension => {
|
||||
crate::types::CoverArtType::JpegExtension => {
|
||||
String::from(crate::constants::file_extensions::image::JPEGEXTENSION)
|
||||
}
|
||||
crate::types::CoverArtTypes::JpgExtension => {
|
||||
crate::types::CoverArtType::JpgExtension => {
|
||||
String::from(crate::constants::file_extensions::image::JPGEXTENSION)
|
||||
}
|
||||
crate::types::CoverArtTypes::None => {
|
||||
crate::types::CoverArtType::None => {
|
||||
return Err(std::io::Error::other("Unsupported CoverArtTypes"));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user