mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fix test-tidy errors
This commit is contained in:
parent
3837b3e508
commit
482d23bb19
1 changed files with 5 additions and 2 deletions
|
@ -132,7 +132,10 @@ mod close_code {
|
|||
pub const TLS_FAILED: u16 = 1015;
|
||||
}
|
||||
|
||||
pub fn close_the_websocket_connection(address: Trusted<WebSocket>, sender: Box<ScriptChan>, code: Option<u16>, reason: String) {
|
||||
pub fn close_the_websocket_connection(address: Trusted<WebSocket>,
|
||||
sender: Box<ScriptChan>,
|
||||
code: Option<u16>,
|
||||
reason: String) {
|
||||
let close_task = box CloseTask {
|
||||
addr: address,
|
||||
failed: false,
|
||||
|
@ -527,7 +530,7 @@ impl Runnable for CloseTask {
|
|||
}
|
||||
|
||||
// Perform _the WebSocket connection is closed_ steps.
|
||||
// https://html.spec.whatwg.org/multipage/comms.html#closeWebSocket
|
||||
// https://html.spec.whatwg.org/multipage/#closeWebSocket
|
||||
|
||||
// Step 1.
|
||||
ws.ready_state.set(WebSocketRequestState::Closed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue