Skip to content

Commit

Permalink
Merge pull request #63 from Freax13/cloneable-iters
Browse files Browse the repository at this point in the history
derive Clone for SectionIter and ProgramIter
  • Loading branch information
nrc committed Jun 17, 2021
2 parents 3ee1234 + bbe7cba commit 1ebee5e
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
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
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 1ebee5e

Please sign in to comment.