From 3b9789235d56f8f3c87661905c928b790d0d0ef0 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Fri, 26 Nov 2021 00:25:51 +0000 Subject: [PATCH] tidy meta tag handling --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f69c8d4..def5033 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,7 +49,7 @@ fn yes() -> bool { fn handle_mp3(file: DirEntry) { let meta = mp3_metadata::read_from_file(file.path()).unwrap(); - for tag in meta.tag { + if let Some(tag) = meta.tag { println!("----------------------"); println!("artist: {}", tag.artist.trim()); println!("album: {}", tag.album.trim());