From 0acade6be7f1e67e69a3bbde84bb7a3e5623251f Mon Sep 17 00:00:00 2001
From: Kornel <kornel@geekhood.net>
Date: Wed, 14 Jun 2017 13:30:24 +0100
Subject: [PATCH] Example update

---
 examples/tags.rs | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/examples/tags.rs b/examples/tags.rs
index 0368dda..cc20dfe 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() {
-- 
GitLab