Code refactor (#16)
All checks were successful
Rust Build / Check (push) Successful in 39s
Rust Build / Check (pull_request) Successful in 31s
Rust Build / build (push) Successful in 42s
Rust Build / Test Suite (pull_request) Successful in 36s
Rust Build / Rustfmt (pull_request) Successful in 30s
Rust Build / Clippy (pull_request) Successful in 40s
Rust Build / build (pull_request) Successful in 41s
Release Tagging / release (push) Successful in 44s
Rust Build / Test Suite (push) Successful in 35s
Rust Build / Rustfmt (push) Successful in 30s
Rust Build / Clippy (push) Successful in 33s

Reviewed-on: #16
Co-authored-by: phoenix <kundeng00@pm.me>
Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
2025-04-13 19:44:56 +00:00
committed by phoenix
parent ed0ac3c156
commit 79a7012a3a

View File

@@ -4,7 +4,7 @@ pub mod meta_type {
Artist,
Album,
Genre,
Year,
Date,
Track,
}
}
@@ -20,7 +20,7 @@ pub mod meta_next {
meta_type::Type::Artist => Ok("ARTIST".to_owned()),
meta_type::Type::Album => Ok("ALBUM".to_owned()),
meta_type::Type::Genre => Ok("GENRE".to_owned()),
meta_type::Type::Year => Ok("DATE".to_owned()),
meta_type::Type::Date => Ok("DATE".to_owned()),
meta_type::Type::Track => Ok("TRACKNUMBER".to_owned()),
}
}
@@ -202,7 +202,7 @@ mod tests {
Ok(_) => {
let filepath = get_full_path(&dir, &filename).unwrap();
match meta_next::get_meta(meta_type::Type::Year, &filepath) {
match meta_next::get_meta(meta_type::Type::Date, &filepath) {
Ok(year) => {
let found = year == "2025-04-11";
assert!(found, "Meta information was not found {:?}", year);