aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/rtcdatachannel.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/rtcdatachannel.rs')
-rw-r--r--components/script/dom/rtcdatachannel.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/rtcdatachannel.rs b/components/script/dom/rtcdatachannel.rs
index 57fb1eba868..0126e144021 100644
--- a/components/script/dom/rtcdatachannel.rs
+++ b/components/script/dom/rtcdatachannel.rs
@@ -378,9 +378,9 @@ impl From<&RTCDataChannelInit> for DataChannelInit {
impl From<DataChannelState> for RTCDataChannelState {
fn from(state: DataChannelState) -> RTCDataChannelState {
match state {
- DataChannelState::New |
- DataChannelState::Connecting |
- DataChannelState::__Unknown(_) => RTCDataChannelState::Connecting,
+ DataChannelState::Connecting | DataChannelState::__Unknown(_) => {
+ RTCDataChannelState::Connecting
+ },
DataChannelState::Open => RTCDataChannelState::Open,
DataChannelState::Closing => RTCDataChannelState::Closing,
DataChannelState::Closed => RTCDataChannelState::Closed,