From bbe7cba1dedf106f7c379f1fd97b633853919aa7 Mon Sep 17 00:00:00 2001 From: Tom Dohrmann Date: Wed, 9 Jun 2021 13:35:28 +0200 Subject: [PATCH] derive Clone for SectionIter and ProgramIter --- src/program.rs | 2 +- src/sections.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/program.rs b/src/program.rs index 66153f6..9c4b474 100644 --- a/src/program.rs +++ b/src/program.rs @@ -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, diff --git a/src/sections.rs b/src/sections.rs index 789d9ad..080215f 100644 --- a/src/sections.rs +++ b/src/sections.rs @@ -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,