Remove unwrap from version tag

This commit is contained in:
Rutger 2017-02-16 11:17:02 +01:00
parent 333ac3ec46
commit 6286cddc04

View file

@ -384,7 +384,7 @@ named!(pub m3u_tag<String>,
named!(pub version_tag<usize>,
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()
)
);