Code refactoring
All checks were successful
Rust Build / Check (pull_request) Successful in 52s
Rust Build / Test Suite (pull_request) Successful in 49s
Rust Build / Rustfmt (pull_request) Successful in 32s
Rust Build / Clippy (pull_request) Successful in 38s
Rust Build / build (pull_request) Successful in 46s

This commit is contained in:
2025-04-19 17:08:26 -04:00
parent 52519fc2d9
commit 7bd72c4687

View File

@@ -957,7 +957,11 @@ mod tests {
assert!(found, "Meta information was not found {:?}", track_total);
let new_track_total = String::from("5");
match set_meta(types::Type::TrackCount, &new_filepath, &new_track_total) {
match set_meta(
types::Type::TrackCount,
&new_filepath,
&new_track_total,
) {
Ok(m) => {
assert_eq!(
new_track_total, m,
@@ -1010,9 +1014,17 @@ mod tests {
assert!(found, "Meta information was not found {:?}", disc_total);
let new_disc_total = String::from("2");
match set_meta(types::Type::DiscCount, &new_filepath, &new_disc_total) {
match set_meta(
types::Type::DiscCount,
&new_filepath,
&new_disc_total,
) {
Ok(m) => {
assert_eq!(new_disc_total, m, "New disc_total does not match {:?}", m);
assert_eq!(
new_disc_total, m,
"New disc_total does not match {:?}",
m
);
}
Err(err) => {
assert!(false, "Error: {:?}", err);