From bdb976332373b0ed73394285a8e978e4db167afa Mon Sep 17 00:00:00 2001 From: Joshua Oladele Date: Wed, 30 Aug 2023 14:58:30 +0100 Subject: [PATCH 1/2] Upgrade rust toolchain version --- rust-toolchain.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index b42ddcf07f..be838d8604 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.67.0" +channel = "1.72.0" components = ["rustfmt", "clippy"] From 92be2b30ca68fa3ff460ee2c99ebfe5b811d1651 Mon Sep 17 00:00:00 2001 From: Joshua Oladele Date: Wed, 30 Aug 2023 16:05:00 +0100 Subject: [PATCH 2/2] Fix clippy lints --- rust/src/ortc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/ortc.rs b/rust/src/ortc.rs index 489724b6ba..74a5ec8038 100644 --- a/rust/src/ortc.rs +++ b/rust/src/ortc.rs @@ -666,7 +666,7 @@ pub(crate) fn get_consumer_rtp_parameters( if let Some(matched_cap_codec) = remote_rtp_capabilities .codecs .iter() - .find(|cap_codec| match_codecs(cap_codec.deref().into(), (&codec).into(), true).is_ok()) + .find(|cap_codec| match_codecs((*cap_codec).into(), (&codec).into(), true).is_ok()) { *codec.rtcp_feedback_mut() = matched_cap_codec .rtcp_feedback()