aya-obj: change two drain() calls to into_iter()

pull/572/head
Alessandro Decina 1 year ago
parent 401ea5e848
commit b25a089819

@ -753,7 +753,7 @@ impl Object {
section.index, section.index,
section section
.relocations .relocations
.drain(..) .into_iter()
.map(|rel| (rel.offset, rel)) .map(|rel| (rel.offset, rel))
.collect(), .collect(),
); );
@ -871,7 +871,7 @@ impl Object {
section.index, section.index,
section section
.relocations .relocations
.drain(..) .into_iter()
.map(|rel| (rel.offset, rel)) .map(|rel| (rel.offset, rel))
.collect(), .collect(),
); );

Loading…
Cancel
Save