diff options
Diffstat (limited to 'components/servo')
-rw-r--r-- | components/servo/lib.rs | 7 | ||||
-rw-r--r-- | components/servo/main.rs | 1 |
2 files changed, 4 insertions, 4 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs index 6d623eaed1c..8d64a1d73bc 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -20,7 +20,6 @@ extern crate script; extern crate layout; extern crate gfx; extern crate libc; -extern crate native; extern crate rustrt; extern crate url; @@ -30,7 +29,9 @@ use compositing::windowing::{WindowEvent, WindowMethods}; #[cfg(not(test))] use compositing::{CompositorProxy, CompositorTask, Constellation}; #[cfg(not(test))] -use servo_msg::constellation_msg::{ConstellationChan, InitLoadUrlMsg}; +use servo_msg::constellation_msg::Msg as ConstellationMsg; +#[cfg(not(test))] +use servo_msg::constellation_msg::ConstellationChan; #[cfg(not(test))] use script::dom::bindings::codegen::RegisterBindings; @@ -120,7 +121,7 @@ impl<Window> Browser<Window> where Window: WindowMethods + 'static { }; let ConstellationChan(ref chan) = constellation_chan; - chan.send(InitLoadUrlMsg(url)); + chan.send(ConstellationMsg::InitLoadUrl(url)); } // Send the constallation Chan as the result diff --git a/components/servo/main.rs b/components/servo/main.rs index 905ff205c61..be8dc7e7f03 100644 --- a/components/servo/main.rs +++ b/components/servo/main.rs @@ -11,7 +11,6 @@ extern crate libc; extern crate servo; -extern crate native; extern crate time; extern crate "util" as servo_util; |