diff --git a/examples/tags.rs b/examples/tags.rs index 0368dda18d0502652d2a7de5524514db77617b1a..cc20dfe3b2b02ee4db3dbc025bed8c2a3021e182 100644 --- a/examples/tags.rs +++ b/examples/tags.rs @@ -11,8 +11,9 @@ fn main() { }; for &info in &[InfoType::Description, InfoType::Manufacturer, InfoType::Model, InfoType::Copyright] { - let data = profile.info(info, Locale::none()); - println!("{:?} = {:?}", info, data); + if let Some(data) = profile.info(info, Locale::none()) { + println!("{:?} = {:?}", info, data); + } } for sig in profile.tag_signatures() {