diff options
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r-- | components/servo/lib.rs | 7 |
1 files changed, 4 insertions, 3 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 |