mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-02 00:11:01 +00:00
webrtchttp: Don't use let-else for now
We still support Rust 1.63. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/949>
This commit is contained in:
parent
5dc52975ff
commit
9c31344bbc
1 changed files with 4 additions and 1 deletions
|
@ -226,7 +226,10 @@ pub fn set_ice_servers(
|
||||||
// construct url as '<scheme>://<user:pass>@<url>'
|
// construct url as '<scheme>://<user:pass>@<url>'
|
||||||
let url = format!("{}://{}", link.uri.scheme(), link.uri.path());
|
let url = format!("{}://{}", link.uri.scheme(), link.uri.path());
|
||||||
|
|
||||||
let Ok(mut new_url) = reqwest::Url::parse(url.as_str()) else { continue };
|
let mut new_url = match reqwest::Url::parse(url.as_str()) {
|
||||||
|
Ok(url) => url,
|
||||||
|
Err(_) => continue,
|
||||||
|
};
|
||||||
|
|
||||||
if let Some(user) = link.params.get("username") {
|
if let Some(user) = link.params.get("username") {
|
||||||
new_url.set_username(user.as_str()).unwrap();
|
new_url.set_username(user.as_str()).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue