aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/websocket.rs
diff options
context:
space:
mode:
authorPyfisch <pyfisch@gmail.com>2018-11-06 13:01:35 +0100
committerPyfisch <pyfisch@gmail.com>2018-11-06 22:30:31 +0100
commitcb07debcb6f3d3561177ce536c320986720791b7 (patch)
treeccac4d5a48b3112230f3fc2e873753dd7263e9fb /components/script/dom/websocket.rs
parentbf47f90da667e95eaffc8fee36ca8a88e72e276c (diff)
downloadservo-cb07debcb6f3d3561177ce536c320986720791b7.tar.gz
servo-cb07debcb6f3d3561177ce536c320986720791b7.zip
Format remaining files
Diffstat (limited to 'components/script/dom/websocket.rs')
-rw-r--r--components/script/dom/websocket.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/script/dom/websocket.rs b/components/script/dom/websocket.rs
index c6efde14cfc..d7a90eca8fb 100644
--- a/components/script/dom/websocket.rs
+++ b/components/script/dom/websocket.rs
@@ -429,7 +429,7 @@ impl WebSocketMethods for WebSocket {
WebSocketRequestState::Connecting => {
//Connection is not yet established
/*By setting the state to closing, the open function
- will abort connecting the websocket*/
+ will abort connecting the websocket*/
self.ready_state.set(WebSocketRequestState::Closing);
let address = Trusted::new(self);
@@ -588,7 +588,8 @@ impl TaskOnce for MessageReceivedTask {
cx,
CreateWith::Slice(&data),
array_buffer.handle_mut()
- ).is_ok()
+ )
+ .is_ok()
);
(*array_buffer).to_jsval(cx, message.handle_mut());