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();