Skip to content

Commit 5f64ccd

Browse files
committed
Fix WebRTC data channel clippy lint
1 parent f2a9bd6 commit 5f64ccd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

server/src/transport/webrtc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ fn attach_control_data_channel(
381381
match message {
382382
WebRtcDataChannelMessage::ClientStats { stats } => {
383383
if !stats.client_id.trim().is_empty() && !stats.kind.trim().is_empty() {
384-
state.metrics.record_client_stream_stats(stats);
384+
state.metrics.record_client_stream_stats(*stats);
385385
}
386386
}
387387
WebRtcDataChannelMessage::StreamControl {
@@ -440,7 +440,7 @@ fn attach_control_data_channel(
440440
#[serde(tag = "type", rename_all = "camelCase")]
441441
enum WebRtcDataChannelMessage {
442442
ClientStats {
443-
stats: ClientStreamStats,
443+
stats: Box<ClientStreamStats>,
444444
},
445445
StreamControl {
446446
fps: Option<u32>,

0 commit comments

Comments
 (0)