Skip to content

Commit

Permalink
Fixed a compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhouse committed Nov 4, 2024
1 parent fb940c6 commit 7f01166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ impl Binary {
pub fn data(&self, address: usize, size: usize) -> Vec<u8> {
self.section_for_address(address)
.and_then(|s| s.slice(s.offset().saturating_sub(address), size))
.map(|d| d.to_vec())
.and_then(|d| Ok(d.to_vec()))
.unwrap_or(Vec::new())
}

Expand Down

0 comments on commit 7f01166

Please sign in to comment.