mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Fix formatting issues.
This commit is contained in:
parent
d6231a18ef
commit
08b3902bbb
2 changed files with 10 additions and 9 deletions
|
@ -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
|
||||
}})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue