mirror of
https://github.com/rutgersc/m3u8-rs.git
synced 2025-01-05 04:28:41 +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
|
media_type: attrs
|
||||||
.get("TYPE")
|
.get("TYPE")
|
||||||
.and_then(|s| AlternativeMediaType::from_str(s).ok())
|
.and_then(|s| AlternativeMediaType::from_str(s).ok())
|
||||||
.unwrap_or_else(Default::default),
|
.unwrap_or_default(),
|
||||||
uri: attrs.remove("URI"),
|
uri: attrs.remove("URI"),
|
||||||
group_id: attrs.remove("GROUP-ID").unwrap_or_else(String::new),
|
group_id: attrs.remove("GROUP-ID").unwrap_or_else(String::new),
|
||||||
language: attrs.remove("LANGUAGE"),
|
language: attrs.remove("LANGUAGE"),
|
||||||
|
|
Loading…
Reference in a new issue