mirror of
https://github.com/rutgersc/m3u8-rs.git
synced 2024-12-22 14:36:28 +00:00
Remove unwrap from version tag
This commit is contained in:
parent
333ac3ec46
commit
6286cddc04
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
)
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue