diff --git a/aya-obj/src/obj.rs b/aya-obj/src/obj.rs index 0d110fff..b6b0a323 100644 --- a/aya-obj/src/obj.rs +++ b/aya-obj/src/obj.rs @@ -753,7 +753,7 @@ impl Object { section.index, section .relocations - .drain(..) + .into_iter() .map(|rel| (rel.offset, rel)) .collect(), ); @@ -871,7 +871,7 @@ impl Object { section.index, section .relocations - .drain(..) + .into_iter() .map(|rel| (rel.offset, rel)) .collect(), );