Skip to content

Commit

Permalink
Fix formatting issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsbergstrom committed Sep 12, 2013
1 parent d6231a1 commit 08b3902
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions src/components/main/compositing/compositor_layer.rs
Expand Up @@ -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
}})
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/main/pipeline.rs
Expand Up @@ -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<task::TaskResult>, f:~fn()) {
pub fn spawn(chan: Chan<task::TaskResult>, f: ~fn()) {
let mut task = task::task();
task.opts.notify_chan = Some(chan);
task.supervised();
Expand Down

0 comments on commit 08b3902

Please sign in to comment.