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:
parent
48cec32341
commit
58c6b67dbd
@ -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"))]
|
||||
|
@ -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"))]
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user