Browse Source

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

Alessandro Decina 1 year ago
parent
commit
b25a089
1 changed files with 2 additions and 2 deletions
  1. 2 2
      aya-obj/src/obj.rs

+ 2 - 2
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(),
                     );