diff options
Diffstat (limited to 'components/servo/lib.rs')
-rw-r--r-- | components/servo/lib.rs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/components/servo/lib.rs b/components/servo/lib.rs index f6edcc45bde..dba8ce702df 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -46,6 +46,7 @@ pub extern crate profile_traits; pub extern crate script; pub extern crate script_traits; pub extern crate script_layout_interface; +pub extern crate servo_channel; pub extern crate servo_config; pub extern crate servo_geometry; pub extern crate servo_url; @@ -95,13 +96,13 @@ use profile::time as profile_time; use profile_traits::mem; use profile_traits::time; use script_traits::{ConstellationMsg, SWManagerSenders, ScriptToConstellationChan}; +use servo_channel::{Sender, channel}; use servo_config::opts; use servo_config::prefs::PREFS; use std::borrow::Cow; use std::cmp::max; use std::path::PathBuf; use std::rc::Rc; -use std::sync::mpsc::{Sender, channel}; use webrender::RendererKind; use webvr::{WebVRThread, WebVRCompositorHandler}; @@ -275,7 +276,7 @@ where WindowEvent::LoadUrl(top_level_browsing_context_id, url) => { let msg = ConstellationMsg::LoadUrl(top_level_browsing_context_id, url); if let Err(e) = self.constellation_chan.send(msg) { - warn!("Sending load url to constellation failed ({}).", e); + warn!("Sending load url to constellation failed ({:?}).", e); } }, @@ -313,14 +314,14 @@ where let msg = ConstellationMsg::TraverseHistory(top_level_browsing_context_id, direction); if let Err(e) = self.constellation_chan.send(msg) { - warn!("Sending navigation to constellation failed ({}).", e); + warn!("Sending navigation to constellation failed ({:?}).", e); } }, WindowEvent::KeyEvent(ch, key, state, modifiers) => { let msg = ConstellationMsg::KeyEvent(ch, key, state, modifiers); if let Err(e) = self.constellation_chan.send(msg) { - warn!("Sending key event to constellation failed ({}).", e); + warn!("Sending key event to constellation failed ({:?}).", e); } }, @@ -331,7 +332,7 @@ where WindowEvent::Reload(top_level_browsing_context_id) => { let msg = ConstellationMsg::Reload(top_level_browsing_context_id); if let Err(e) = self.constellation_chan.send(msg) { - warn!("Sending reload to constellation failed ({}).", e); + warn!("Sending reload to constellation failed ({:?}).", e); } }, @@ -347,7 +348,7 @@ where let msg = ConstellationMsg::NewBrowser(url, browser_id); if let Err(e) = self.constellation_chan.send(msg) { warn!( - "Sending NewBrowser message to constellation failed ({}).", + "Sending NewBrowser message to constellation failed ({:?}).", e ); } @@ -357,7 +358,7 @@ where let msg = ConstellationMsg::SelectBrowser(ctx); if let Err(e) = self.constellation_chan.send(msg) { warn!( - "Sending SelectBrowser message to constellation failed ({}).", + "Sending SelectBrowser message to constellation failed ({:?}).", e ); } @@ -367,7 +368,7 @@ where let msg = ConstellationMsg::CloseBrowser(ctx); if let Err(e) = self.constellation_chan.send(msg) { warn!( - "Sending CloseBrowser message to constellation failed ({}).", + "Sending CloseBrowser message to constellation failed ({:?}).", e ); } @@ -376,7 +377,7 @@ where WindowEvent::SendError(ctx, e) => { let msg = ConstellationMsg::SendError(ctx, e); if let Err(e) = self.constellation_chan.send(msg) { - warn!("Sending SendError message to constellation failed ({}).", e); + warn!("Sending SendError message to constellation failed ({:?}).", e); } }, } |