webrtc: Silence two new Rust 1.82 clippy warnings

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1860>
This commit is contained in:
Sebastian Dröge 2024-10-17 22:29:25 +03:00 committed by GStreamer Marge Bot
parent 959463ff65
commit 54bc7a898e

View file

@ -735,6 +735,7 @@ impl WhipServer {
Ok(warp::reply::reply().into_response())
}
#[allow(clippy::single_match)]
async fn options_handler(&self) -> Result<impl warp::Reply, warp::Rejection> {
let settings = self.settings.lock().unwrap();
drop(settings);
@ -852,6 +853,7 @@ impl WhipServer {
let settings = self.settings.lock().unwrap();
let mut links = HeaderMap::new();
#[allow(clippy::single_match)]
match &settings.stun_server {
Some(stun) => match build_link_header(stun.as_str()) {
Ok(stun_link) => {