mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Pass a String to spawn_named.
IntoString has been removed from Rust, and named() will take a String, so there is no good reason to do otherwise here.
This commit is contained in:
parent
94ebc7c32d
commit
808315926c
15 changed files with 36 additions and 25 deletions
|
@ -17,6 +17,7 @@ use servo_util::str::DOMString;
|
|||
|
||||
use js::jsval::JSVal;
|
||||
|
||||
use std::borrow::ToOwned;
|
||||
use std::cell::Cell;
|
||||
use std::cmp;
|
||||
use std::collections::HashMap;
|
||||
|
@ -127,7 +128,7 @@ impl TimerManager {
|
|||
TimerSource::FromWorker if is_interval == IsInterval::Interval => "Worker:SetInterval",
|
||||
TimerSource::FromWindow(_) => "Window:SetTimeout",
|
||||
TimerSource::FromWorker => "Worker:SetTimeout",
|
||||
};
|
||||
}.to_owned();
|
||||
spawn_named(spawn_name, proc() {
|
||||
let mut tm = tm;
|
||||
let duration = Duration::milliseconds(timeout as i64);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue