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:
Ms2ger 2016-03-14 15:23:35 +01:00
parent a862384841
commit ec1f720662
9 changed files with 45 additions and 56 deletions

View file

@ -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)
}