slightly clean up the code

This commit is contained in:
nora 2025-03-10 20:26:49 +01:00
parent ae29dd0505
commit 13aec667db
4 changed files with 29 additions and 29 deletions

View file

@ -30,7 +30,7 @@ pub struct Phdr {
pub p_align: u32,
}
impl<'a> Elf<'a> {
impl Elf<'_> {
pub fn header(&self) -> Result<Header> {
let (ident, rest) = self.content.split_bytes(16)?;
if ident[..4] != *b"\x7fELF" {