aboutsummaryrefslogtreecommitdiffstats
path: root/components/compositing/compositor_task.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2015-08-13 19:06:47 -0400
committerJosh Matthews <josh@joshmatthews.net>2015-08-16 10:30:43 -0400
commit8bb853f64354b2cc1b9f9e0ea416efdd79096418 (patch)
tree3d369b7310e24d25d49939de67fd9a7371675e56 /components/compositing/compositor_task.rs
parent7f935f010b356df23c2cf5737021880b30e6c76d (diff)
downloadservo-8bb853f64354b2cc1b9f9e0ea416efdd79096418.tar.gz
servo-8bb853f64354b2cc1b9f9e0ea416efdd79096418.zip
Fix existing syntactics nits.
Diffstat (limited to 'components/compositing/compositor_task.rs')
-rw-r--r--components/compositing/compositor_task.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/components/compositing/compositor_task.rs b/components/compositing/compositor_task.rs
index d559630bfcf..fcf745a9bc2 100644
--- a/components/compositing/compositor_task.rs
+++ b/components/compositing/compositor_task.rs
@@ -37,7 +37,7 @@ pub trait CompositorProxy : 'static + Send {
/// Sends a message to the compositor.
fn send(&self, msg: Msg);
/// Clones the compositor proxy.
- fn clone_compositor_proxy(&self) -> Box<CompositorProxy+'static+Send>;
+ fn clone_compositor_proxy(&self) -> Box<CompositorProxy + 'static + Send>;
}
/// The port that the compositor receives messages on. As above, this is a trait supplied by the
@@ -88,7 +88,7 @@ pub fn run_script_listener_thread(compositor_proxy: Box<CompositorProxy + 'stati
}
/// Implementation of the abstract `PaintListener` interface.
-impl PaintListener for Box<CompositorProxy+'static+Send> {
+impl PaintListener for Box<CompositorProxy + 'static + Send> {
fn native_display(&mut self) -> Option<NativeDisplay> {
let (chan, port) = channel();
self.send(Msg::GetNativeDisplay(chan));
@@ -204,7 +204,7 @@ pub enum Msg {
}
impl Debug for Msg {
- fn fmt(&self, f: &mut Formatter) -> Result<(),Error> {
+ fn fmt(&self, f: &mut Formatter) -> Result<(), Error> {
match *self {
Msg::Exit(..) => write!(f, "Exit"),
Msg::ShutdownComplete(..) => write!(f, "ShutdownComplete"),
@@ -240,7 +240,7 @@ pub struct CompositorTask;
impl CompositorTask {
pub fn create<Window>(window: Option<Rc<Window>>,
- sender: Box<CompositorProxy+Send>,
+ sender: Box<CompositorProxy + Send>,
receiver: Box<CompositorReceiver>,
constellation_chan: ConstellationChan,
time_profiler_chan: time::ProfilerChan,