for x in xs.iter() -> for x in &xs

This commit is contained in:
Jorge Aparicio 2015-01-31 12:20:46 -05:00
parent 9f90d666e0
commit d5d7e6565a
269 changed files with 1063 additions and 1064 deletions

View file

@ -425,7 +425,7 @@ mod imp {
unsafe extern fn run_dtors(mut ptr: *mut u8) {
while !ptr.is_null() {
let list: Box<List> = mem::transmute(ptr);
for &(ptr, dtor) in list.iter() {
for &(ptr, dtor) in &*list {
dtor(ptr);
}
ptr = DTORS.get();