mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-02 14:11:32 +00:00
Run rustfmt
This commit is contained in:
@ -62,11 +62,19 @@ async fn exchange_sdps(
|
||||
) -> (RtcPeerConnection, RtcPeerConnection) {
|
||||
let offer = JsFuture::from(p1.create_offer()).await.unwrap();
|
||||
let offer = offer.unchecked_into::<RtcSessionDescriptionInit>();
|
||||
JsFuture::from(p1.set_local_description(&offer)).await.unwrap();
|
||||
JsFuture::from(p2.set_remote_description(&offer)).await.unwrap();
|
||||
JsFuture::from(p1.set_local_description(&offer))
|
||||
.await
|
||||
.unwrap();
|
||||
JsFuture::from(p2.set_remote_description(&offer))
|
||||
.await
|
||||
.unwrap();
|
||||
let answer = JsFuture::from(p2.create_answer()).await.unwrap();
|
||||
let answer = answer.unchecked_into::<RtcSessionDescriptionInit>();
|
||||
JsFuture::from(p2.set_local_description(&answer)).await.unwrap();
|
||||
JsFuture::from(p1.set_remote_description(&answer)).await.unwrap();
|
||||
JsFuture::from(p2.set_local_description(&answer))
|
||||
.await
|
||||
.unwrap();
|
||||
JsFuture::from(p1.set_remote_description(&answer))
|
||||
.await
|
||||
.unwrap();
|
||||
(p1, p2)
|
||||
}
|
||||
|
Reference in New Issue
Block a user