Skip to content

Commit 5fbb163

Browse files
authored
chore: fix clippy beta lints
Pull-Request: #6543.
1 parent 5a133a0 commit 5fbb163

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

transports/webrtc/src/tokio/upgrade.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ use webrtc::{
4444
use crate::tokio::{Connection, error::Error, sdp, sdp::random_ufrag, stream::Stream};
4545

4646
/// Creates a new outbound WebRTC connection.
47+
#[allow(clippy::result_large_err)]
4748
pub(crate) async fn outbound(
4849
addr: SocketAddr,
4950
config: RTCConfiguration,
@@ -78,6 +79,7 @@ pub(crate) async fn outbound(
7879
}
7980

8081
/// Creates a new inbound WebRTC connection.
82+
#[allow(clippy::result_large_err)]
8183
pub(crate) async fn inbound(
8284
addr: SocketAddr,
8385
config: RTCConfiguration,
@@ -112,6 +114,7 @@ pub(crate) async fn inbound(
112114
Ok((peer_id, Connection::new(peer_connection).await))
113115
}
114116

117+
#[allow(clippy::result_large_err)]
115118
async fn new_outbound_connection(
116119
addr: SocketAddr,
117120
config: RTCConfiguration,
@@ -129,6 +132,7 @@ async fn new_outbound_connection(
129132
Ok((connection, ufrag))
130133
}
131134

135+
#[allow(clippy::result_large_err)]
132136
async fn new_inbound_connection(
133137
addr: SocketAddr,
134138
config: RTCConfiguration,
@@ -205,6 +209,7 @@ async fn get_remote_fingerprint(conn: &RTCPeerConnection) -> Fingerprint {
205209
Fingerprint::from_certificate(&cert_bytes)
206210
}
207211

212+
#[allow(clippy::result_large_err)]
208213
async fn create_noise_data_channel(
209214
conn: &RTCPeerConnection,
210215
) -> Result<oneshot::Receiver<Arc<DataChannel>>, Error> {
@@ -227,6 +232,7 @@ async fn create_noise_data_channel(
227232
Ok(rx)
228233
}
229234

235+
#[allow(clippy::result_large_err)]
230236
async fn await_noise_data_channel_open(
231237
rx: oneshot::Receiver<Arc<DataChannel>>,
232238
) -> Result<Stream, Error> {

0 commit comments

Comments
 (0)