From bd6027f9fb4ce1c91658f1fd845cf37fabb741d4 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Tue, 21 Oct 2025 22:19:51 -0400 Subject: [PATCH] tsk-212: Replaced code with constants --- src/callers/coverart.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/callers/coverart.rs b/src/callers/coverart.rs index c8acde3..0c68afe 100644 --- a/src/callers/coverart.rs +++ b/src/callers/coverart.rs @@ -502,9 +502,9 @@ pub mod cov_db { mod helper { pub fn is_coverart_file_type_valid(file_type: &String) -> bool { let valid_file_types = vec![ - String::from("png"), - String::from("jpg"), - String::from("jpeg"), + String::from(icarus_meta::detection::coverart::constants::JPEG_TYPE), + String::from(icarus_meta::detection::coverart::constants::JPG_TYPE), + String::from(icarus_meta::detection::coverart::constants::PNG_TYPE), ]; for valid_file_type in valid_file_types {