mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
script: const initialize LIVE_REFERENCES (#37688)
With Rust 1.85 it is possible to const initialize Hashmaps if the hash algorithm does not rely on a random seed. Testing: No functional changes, covered by existing tests Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
This commit is contained in:
parent
d970584332
commit
50cf01cf3d
2 changed files with 19 additions and 25 deletions
|
@ -511,7 +511,6 @@ impl Runtime {
|
|||
parent: Option<ParentRuntime>,
|
||||
networking_task_source: Option<SendableTaskSource>,
|
||||
) -> Runtime {
|
||||
LiveDOMReferences::initialize();
|
||||
let (cx, runtime) = if let Some(parent) = parent {
|
||||
let runtime = RustRuntime::create_with_parent(parent);
|
||||
let cx = runtime.cx();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue