Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/net/rtp
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2022-11-01 11:27:48 +0300
committerSebastian Dröge <sebastian@centricular.com>2022-11-01 11:27:48 +0300
commita8250abbf1eeff3ee277d93f166c3fd4983d7af3 (patch)
treec72fb58c6477081417a0685b9dac19ff48b8f6c9 /net/rtp
parent31d4ba2eaee98cb09eaf1b6c4ab29698018ff4e7 (diff)
Fix various new clippy warnings
Diffstat (limited to 'net/rtp')
-rw-r--r--net/rtp/src/av1/depay/imp.rs2
-rw-r--r--net/rtp/src/av1/pay/imp.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/rtp/src/av1/depay/imp.rs b/net/rtp/src/av1/depay/imp.rs
index c2a163a2d..83e1a23e4 100644
--- a/net/rtp/src/av1/depay/imp.rs
+++ b/net/rtp/src/av1/depay/imp.rs
@@ -51,7 +51,7 @@ static CAT: Lazy<gst::DebugCategory> = Lazy::new(|| {
});
static TEMPORAL_DELIMITER: Lazy<gst::Memory> =
- Lazy::new(|| gst::Memory::from_slice(&[0b0001_0010, 0]));
+ Lazy::new(|| gst::Memory::from_slice([0b0001_0010, 0]));
impl RTPAv1Depay {
fn reset(&self, state: &mut State) {
diff --git a/net/rtp/src/av1/pay/imp.rs b/net/rtp/src/av1/pay/imp.rs
index 1591ad293..66e5a8740 100644
--- a/net/rtp/src/av1/pay/imp.rs
+++ b/net/rtp/src/av1/pay/imp.rs
@@ -390,7 +390,7 @@ impl RTPAv1Pay {
let aggr_header: [u8; 1] = [
(state.open_obu_fragment as u8) << 7 | // Z
- ((packet.last_obu_fragment_size != None) as u8) << 6 | // Y
+ ((packet.last_obu_fragment_size.is_some()) as u8) << 6 | // Y
(w as u8) << 4 | // W
(state.first_packet_in_seq as u8) << 3 // N
; 1];