Skip to content

Commit 8764abe

Browse files
committed
pe.section_table: add explicit elided lifetime as 'a for Cow
1 parent accd94c commit 8764abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pe/section_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ impl SectionTable {
8484
Ok(table)
8585
}
8686

87-
pub fn data<'a, 'b: 'a>(&'a self, pe_bytes: &'b [u8]) -> error::Result<Option<Cow<[u8]>>> {
87+
pub fn data<'a, 'b: 'a>(&'a self, pe_bytes: &'b [u8]) -> error::Result<Option<Cow<'a, [u8]>>> {
8888
let section_start: usize = self.pointer_to_raw_data.try_into().map_err(|_| {
8989
Error::Malformed(format!("Virtual address cannot fit in platform `usize`"))
9090
})?;

0 commit comments

Comments
 (0)