mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Use lazy_static for HOST_TABLE.
This might change behaviour if the file is changed between Servo startup and the moment HOST_TABLE is first accessed. I don't think we care.
This commit is contained in:
parent
a862384841
commit
ec1f720662
9 changed files with 45 additions and 56 deletions
|
@ -36,7 +36,6 @@ use gleam::gl;
|
|||
use offscreen_gl_context::{GLContext, NativeGLContext};
|
||||
use servo::Browser;
|
||||
use servo::compositing::windowing::WindowEvent;
|
||||
use servo::net_traits::hosts;
|
||||
use servo::util::opts::{self, ArgumentParsingResult};
|
||||
use std::rc::Rc;
|
||||
|
||||
|
@ -66,9 +65,6 @@ fn main() {
|
|||
|
||||
setup_logging();
|
||||
|
||||
// Possibly interpret the `HOST_FILE` environment variable
|
||||
hosts::global_init();
|
||||
|
||||
if let Some(token) = content_process_token {
|
||||
return servo::run_content_process(token)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue