Skip to content

Commit

Permalink
derive Clone for SectionIter and ProgramIter
Browse files Browse the repository at this point in the history
  • Loading branch information
Freax13 committed Jun 9, 2021
1 parent 3b7439c commit bbe7cba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn parse_program_header<'a>(input: &'a [u8],
}
}

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct ProgramIter<'b, 'a: 'b> {
pub file: &'b ElfFile<'a>,
pub next_index: u16,
Expand Down
2 changes: 1 addition & 1 deletion src/sections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn parse_section_header<'a>(input: &'a [u8],
})
}

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct SectionIter<'b, 'a: 'b> {
pub file: &'b ElfFile<'a>,
pub next_index: u16,
Expand Down

0 comments on commit bbe7cba

Please sign in to comment.