Skip to content

Commit

Permalink
Clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEntangledAndy committed Jul 31, 2024
1 parent 813eb25 commit f8bb04f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/core/src/bc/xml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
..
},
}),
..
}),
..
Expand Down
3 changes: 3 additions & 0 deletions src/rtsp/factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,11 +471,14 @@ fn pipe_silence(bin: &Element, stream_config: &StreamConfig) -> Result<Linked> {
})
}

#[allow(dead_code)]
struct AppSrcPair {
vid: AppSrc,
aud: Option<AppSrc>,
}

#[allow(dead_code)]
/// Experimental build a stream of MPEGTS
fn build_mpegts(bin: &Element, stream_config: &StreamConfig) -> Result<AppSrcPair> {
let buffer_size = buffer_size(stream_config.bitrate);
log::debug!(
Expand Down

0 comments on commit f8bb04f

Please sign in to comment.