hashmap: Remove .consume() has rename .consume_iter() to .consume()
Updated all users of HashMap, HashSet old .consume() to use .consume() with a for loop. Since .consume() takes the map or set by value, it needs awkward extra code to in librusti's use of @mut HashMap, where the map value can not be directly moved out.
This commit is contained in:
parent
0335339c18
commit
7ef9e722b8
6 changed files with 33 additions and 74 deletions
|
|
@ -122,7 +122,7 @@ fn run_weak_task_service(port: Port<ServiceMsg>) {
|
|||
}
|
||||
}
|
||||
|
||||
do shutdown_map.consume |_, shutdown_chan| {
|
||||
for shutdown_map.consume().advance |(_, shutdown_chan)| {
|
||||
// Weak task may have already exited
|
||||
shutdown_chan.send(());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue