diff --git a/src/lib.rs b/src/lib.rs index ba61089..c0e981f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,7 +54,7 @@ impl<'a> ElfFile<'a> { sections::parse_section_header(self.input, self.header, index) } - pub fn section_iter(&self) -> impl Iterator> + '_ { + pub fn section_iter(&self) -> impl Iterator> + Clone + '_ { SectionIter { file: self, next_index: 0, @@ -65,7 +65,7 @@ impl<'a> ElfFile<'a> { program::parse_program_header(self.input, self.header, index) } - pub fn program_iter(&self) -> impl Iterator> + '_ { + pub fn program_iter(&self) -> impl Iterator> + Clone + '_ { ProgramIter { file: self, next_index: 0,