mirror of
https://github.com/Noratrieb/rustv32i.git
synced 2026-01-16 06:15:02 +01:00
slightly clean up the code
This commit is contained in:
parent
ae29dd0505
commit
13aec667db
4 changed files with 29 additions and 29 deletions
|
|
@ -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" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue