From f8bb04fb8be3a2dad135d7f0eaee2d8d1e8d6a85 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Wed, 31 Jul 2024 13:13:34 +0700 Subject: [PATCH] Clippy issues --- crates/core/src/bc/xml.rs | 5 ++--- src/rtsp/factory.rs | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/crates/core/src/bc/xml.rs b/crates/core/src/bc/xml.rs index 762b8d6..0719a71 100644 --- a/crates/core/src/bc/xml.rs +++ b/crates/core/src/bc/xml.rs @@ -1699,18 +1699,17 @@ fn test_deviceinfo_partial_deser() { "# ); - // Needs to ignore all the other crap that we don't care about let b = BcXml::try_parse(sample.as_bytes()).unwrap(); match b { BcXml { device_info: Some(DeviceInfo { resolution: - Resolution { + Some(Resolution { width: 3840, height: 2160, .. - }, + }), .. }), .. diff --git a/src/rtsp/factory.rs b/src/rtsp/factory.rs index 998d00f..99f18ed 100644 --- a/src/rtsp/factory.rs +++ b/src/rtsp/factory.rs @@ -471,11 +471,14 @@ fn pipe_silence(bin: &Element, stream_config: &StreamConfig) -> Result { }) } +#[allow(dead_code)] struct AppSrcPair { vid: AppSrc, aud: Option, } +#[allow(dead_code)] +/// Experimental build a stream of MPEGTS fn build_mpegts(bin: &Element, stream_config: &StreamConfig) -> Result { let buffer_size = buffer_size(stream_config.bitrate); log::debug!(