From 08b3902bbb2258c3d01b259525cf2a19af796866 Mon Sep 17 00:00:00 2001 From: Lars Bergstrom Date: Thu, 12 Sep 2013 11:16:15 -0700 Subject: [PATCH] Fix formatting issues. --- .../main/compositing/compositor_layer.rs | 17 +++++++++-------- src/components/main/pipeline.rs | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/main/compositing/compositor_layer.rs b/src/components/main/compositing/compositor_layer.rs index 34d942a32fb..ed7f116a11e 100644 --- a/src/components/main/compositing/compositor_layer.rs +++ b/src/components/main/compositing/compositor_layer.rs @@ -486,14 +486,15 @@ impl CompositorLayer { } else { // ID does not match ours, so recurse on descendents (including hidden children). self.children.mut_iter().map(|x| &mut x.child) - .any(|x| { let buffers = cell.take(); - let result = x.add_buffers(pipeline_id, buffers.clone(), epoch); - if result { - result - } else { - cell.put_back(buffers); - result - }}) + .any(|x| { + let buffers = cell.take(); + let result = x.add_buffers(pipeline_id, buffers.clone(), epoch); + if result { + result + } else { + cell.put_back(buffers); + result + }}) } } diff --git a/src/components/main/pipeline.rs b/src/components/main/pipeline.rs index 0a716e0acf9..37e8b1eb41e 100644 --- a/src/components/main/pipeline.rs +++ b/src/components/main/pipeline.rs @@ -164,7 +164,7 @@ impl Pipeline { /// This function wraps the task creation within a supervised task /// so that failure will only tear down those tasks instead of ours. - pub fn spawn(chan:Chan, f:~fn()) { + pub fn spawn(chan: Chan, f: ~fn()) { let mut task = task::task(); task.opts.notify_chan = Some(chan); task.supervised();