examples: webrtc: rust: Fix a couple of new clippy warnings

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8625>
This commit is contained in:
Sebastian Dröge 2025-03-12 19:28:18 +02:00 committed by GStreamer Marge Bot
parent 48cec32341
commit 58c6b67dbd
3 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,6 @@
/// macOS has a specific requirement that there must be a run loop running on the main thread in
/// order to open windows and use OpenGL, and that the global NSApplication instance must be
/// initialized.
/// On macOS this launches the callback function on a thread.
/// On other platforms it's just executed immediately.
#[cfg(not(target_os = "macos"))]

View File

@ -1,7 +1,6 @@
/// macOS has a specific requirement that there must be a run loop running on the main thread in
/// order to open windows and use OpenGL, and that the global NSApplication instance must be
/// initialized.
/// On macOS this launches the callback function on a thread.
/// On other platforms it's just executed immediately.
#[cfg(not(target_os = "macos"))]

View File

@ -442,7 +442,7 @@ impl App {
let twcc_id = media.attributes().find_map(|attr| {
let key = attr.key();
let value = attr.value();
if key != "extmap" || !value.map_or(false, |value| value.ends_with(TWCC_URI)) {
if key != "extmap" || !value.is_some_and(|value| value.ends_with(TWCC_URI)) {
return None;
}
let value = value.unwrap();