From 6286cddc04cf3b3efa03e3e9d2cb4985ba0ba8a7 Mon Sep 17 00:00:00 2001 From: Rutger Date: Thu, 16 Feb 2017 11:17:02 +0100 Subject: [PATCH] Remove unwrap from version tag --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index e0c1528..38c9247 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -384,7 +384,7 @@ named!(pub m3u_tag, named!(pub version_tag, chain!( tag!("#EXT-X-VERSION:") ~ version: map_res!(digit, str::from_utf8), - || version.parse().unwrap() //TODO: or return a default value? + || version.parse().unwrap_or_default() ) );