cargo clippy --fix on example workspaces

This commit is contained in:
Scott Lamb 2023-01-30 22:37:13 -08:00
parent 537bf0d317
commit 831a9d6a18
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View File

@ -34,7 +34,7 @@ pub async fn run(opts: Opts) -> Result<(), Error> {
}
if opts.print_streams {
for (i, stream) in session.streams().iter().enumerate() {
println!("stream {}:\n{:#?}\n\n", i, stream);
println!("stream {i}:\n{stream:#?}\n\n");
}
}
if !opts.print_sdp && !opts.print_streams {

View File

@ -633,12 +633,12 @@ async fn copy<'a>(
let stream = &session.streams()[f.stream_id()];
let start_ctx = *f.start_ctx();
mp4.video(stream, f).await.with_context(
|| format!("Error processing video frame starting with {}", start_ctx))?;
|| format!("Error processing video frame starting with {start_ctx}"))?;
},
CodecItem::AudioFrame(f) => {
let ctx = *f.ctx();
mp4.audio(f).await.with_context(
|| format!("Error processing audio frame, {}", ctx))?;
|| format!("Error processing audio frame, {ctx}"))?;
},
CodecItem::Rtcp(rtcp) => {
if let (Some(t), Some(Ok(Some(sr)))) = (rtcp.rtp_timestamp(), rtcp.pkts().next().map(retina::rtcp::PacketRef::as_sender_report)) {

View File

@ -174,7 +174,7 @@ async fn run() -> Result<(), Error> {
mime_type: "video/h264".to_owned(),
..Default::default()
},
format!("{}-video", i),
format!("{i}-video"),
"retina-webrtc-proxy".to_owned(),
));
let sender = downstream_conn