mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
~[] to Vec in script/script_task.rs
This commit is contained in:
parent
dccea25a8a
commit
e107d0f015
1 changed files with 2 additions and 2 deletions
|
@ -671,7 +671,7 @@ impl ScriptTask {
|
|||
|
||||
// Handle pending resize events.
|
||||
// Gather them first to avoid a double mut borrow on self.
|
||||
let mut resizes = vec!();
|
||||
let mut resizes = Vec::new();
|
||||
|
||||
{
|
||||
let mut page_tree = self.page_tree.borrow_mut();
|
||||
|
@ -693,7 +693,7 @@ impl ScriptTask {
|
|||
}
|
||||
|
||||
// Store new resizes, and gather all other events.
|
||||
let mut sequential = vec!();
|
||||
let mut sequential = Vec::new();
|
||||
|
||||
// Receive at least one message so we don't spinloop.
|
||||
let mut event = self.port.recv();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue