mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-28 22:41:02 +00:00
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:
parent
959463ff65
commit
54bc7a898e
1 changed files with 2 additions and 0 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue