Clippy issues

This commit is contained in:
QuantumEntangledAndy committed 2024-07-31 13:13:34 +07:00
1 parent 813eb25343
commit f8bb04fb8b
2 files changed
+5 -3

No files matched your search

+2 -3
View File
@@ -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(); let b = BcXml::try_parse(sample.as_bytes()).unwrap();
match b { match b {
BcXml { BcXml {
device_info: device_info:
Some(DeviceInfo { Some(DeviceInfo {
resolution: resolution:
Resolution { Some(Resolution {
width: 3840, width: 3840,
height: 2160, height: 2160,
.. ..
}, }),
.. ..
}), }),
.. ..
+3
View File
@@ -471,11 +471,14 @@ fn pipe_silence(bin: &Element, stream_config: &StreamConfig) -> Result<Linked> {
}) })
} }
#[allow(dead_code)]
struct AppSrcPair { struct AppSrcPair {
vid: AppSrc, vid: AppSrc,
aud: Option<AppSrc>, aud: Option<AppSrc>,
} }
#[allow(dead_code)]
/// Experimental build a stream of MPEGTS
fn build_mpegts(bin: &Element, stream_config: &StreamConfig) -> Result<AppSrcPair> { fn build_mpegts(bin: &Element, stream_config: &StreamConfig) -> Result<AppSrcPair> {
let buffer_size = buffer_size(stream_config.bitrate); let buffer_size = buffer_size(stream_config.bitrate);
log::debug!( log::debug!(