cargo clippy --fix on example workspaces
This commit is contained in:
parent
537bf0d317
commit
831a9d6a18
@ -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 {
|
||||
|
@ -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)) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user