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:
Sebastian Dröge 2022-12-05 12:08:57 +02:00
parent 5dc52975ff
commit 9c31344bbc

View file

@ -226,7 +226,10 @@ pub fn set_ice_servers(
// construct url as '<scheme>://<user:pass>@<url>'
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") {
new_url.set_username(user.as_str()).unwrap();