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() ) );