@@ -405,7 +405,7 @@ impl KillHandle {
405
405
others. take ( ) . map_move_default ( true , |f| f ( ) ) && {
406
406
let mut inner = this. take ( ) . unwrap ( ) ;
407
407
( !inner. any_child_failed ) &&
408
- inner. child_tombstones . take_map_default ( true , |f| f ( ) )
408
+ inner. child_tombstones . take ( ) . map_move_default ( true , |f| f ( ) )
409
409
}
410
410
}
411
411
}
@@ -493,15 +493,15 @@ impl Death {
493
493
{ use util; util:: ignore ( group) ; }
494
494
495
495
// Step 1. Decide if we need to collect child failures synchronously.
496
- do self. on_exit . take_map |on_exit| {
496
+ do self. on_exit . take ( ) . map_move |on_exit| {
497
497
if success {
498
498
// We succeeded, but our children might not. Need to wait for them.
499
499
let mut inner = self . kill_handle . take_unwrap ( ) . unwrap ( ) ;
500
500
if inner. any_child_failed {
501
501
success = false ;
502
502
} else {
503
503
// Lockless access to tombstones protected by unwrap barrier.
504
- success = inner. child_tombstones . take_map_default ( true , |f| f ( ) ) ;
504
+ success = inner. child_tombstones . take ( ) . map_move_default ( true , |f| f ( ) ) ;
505
505
}
506
506
}
507
507
on_exit ( success) ;
@@ -510,12 +510,12 @@ impl Death {
510
510
// Step 2. Possibly alert possibly-watching parent to failure status.
511
511
// Note that as soon as parent_handle goes out of scope, the parent
512
512
// can successfully unwrap its handle and collect our reported status.
513
- do self. watching_parent . take_map |mut parent_handle| {
513
+ do self. watching_parent . take ( ) . map_move |mut parent_handle| {
514
514
if success {
515
515
// Our handle might be None if we had an exit callback, and
516
516
// already unwrapped it. But 'success' being true means no
517
517
// child failed, so there's nothing to do (see below case).
518
- do self . kill_handle . take_map |own_handle| {
518
+ do self . kill_handle . take ( ) . map_move |own_handle| {
519
519
own_handle. reparent_children_to ( & mut parent_handle) ;
520
520
} ;
521
521
} else {
0 commit comments