Skip to content

Commit

Permalink
Change some 'file lifetimes to 'data lifetimes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mstange committed Jun 15, 2021
1 parent 01f53e7 commit 7554dc7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/read/pe/section.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ where
R: ReadRef<'data>,
{
pub(super) file: &'file PeFile<'data, Pe, R>,
pub(super) iter: slice::Iter<'file, pe::ImageSectionHeader>,
pub(super) iter: slice::Iter<'data, pe::ImageSectionHeader>,
}

impl<'data, 'file, Pe, R> Iterator for PeSegmentIterator<'data, 'file, Pe, R>
Expand Down Expand Up @@ -58,7 +58,7 @@ where
R: ReadRef<'data>,
{
file: &'file PeFile<'data, Pe, R>,
section: &'file pe::ImageSectionHeader,
section: &'data pe::ImageSectionHeader,
}

impl<'data, 'file, Pe, R> PeSegment<'data, 'file, Pe, R>
Expand Down Expand Up @@ -146,7 +146,7 @@ where
R: ReadRef<'data>,
{
pub(super) file: &'file PeFile<'data, Pe, R>,
pub(super) iter: iter::Enumerate<slice::Iter<'file, pe::ImageSectionHeader>>,
pub(super) iter: iter::Enumerate<slice::Iter<'data, pe::ImageSectionHeader>>,
}

impl<'data, 'file, Pe, R> Iterator for PeSectionIterator<'data, 'file, Pe, R>
Expand Down Expand Up @@ -182,7 +182,7 @@ where
{
pub(super) file: &'file PeFile<'data, Pe, R>,
pub(super) index: SectionIndex,
pub(super) section: &'file pe::ImageSectionHeader,
pub(super) section: &'data pe::ImageSectionHeader,
}

impl<'data, 'file, Pe, R> PeSection<'data, 'file, Pe, R>
Expand Down

0 comments on commit 7554dc7

Please sign in to comment.