mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Remove from Trusted::new an unnecessary argument
This commit is contained in:
parent
f4783a0ec3
commit
8acb21a594
12 changed files with 22 additions and 23 deletions
|
@ -217,7 +217,7 @@ impl WebSocket {
|
|||
|
||||
// Step 7.
|
||||
let ws = WebSocket::new(global, resource_url.clone());
|
||||
let address = Trusted::new(global.get_cx(), ws.r(), global.networking_task_source());
|
||||
let address = Trusted::new(ws.r(), global.networking_task_source());
|
||||
|
||||
let origin = global.get_url().serialize();
|
||||
|
||||
|
@ -288,7 +288,7 @@ impl WebSocket {
|
|||
|
||||
let global = self.global.root();
|
||||
let chan = global.r().networking_task_source();
|
||||
let address = Trusted::new(global.r().get_cx(), self, chan.clone());
|
||||
let address = Trusted::new(self, chan.clone());
|
||||
|
||||
let new_buffer_amount = (self.buffered_amount.get() as u64) + data_byte_len;
|
||||
if new_buffer_amount > (u32::max_value() as u64) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue