mirror of
https://github.com/rutgersc/m3u8-rs.git
synced 2024-11-10 10:49:33 +00:00
Use unwrap_or_default()
instead of unwrap_or_else(Default::default)
This commit is contained in:
parent
336f11e1ba
commit
7e62854e20
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ impl AlternativeMedia {
|
|||
media_type: attrs
|
||||
.get("TYPE")
|
||||
.and_then(|s| AlternativeMediaType::from_str(s).ok())
|
||||
.unwrap_or_else(Default::default),
|
||||
.unwrap_or_default(),
|
||||
uri: attrs.remove("URI"),
|
||||
group_id: attrs.remove("GROUP-ID").unwrap_or_else(String::new),
|
||||
language: attrs.remove("LANGUAGE"),
|
||||
|
|
Loading…
Reference in a new issue