elf.rs: do not inline constant from goblin library
SELFMAG is declared [here](de8aecc8f1/src/elf/header.rs (L91)).
This commit is contained in:
@@ -22,7 +22,7 @@ impl<'a> Elf<'a> {
|
||||
if data.len() < header::SIZEOF_EHDR {
|
||||
Err(format!("Elf: Not enough data: {} < {}", data.len(), header::SIZEOF_EHDR))
|
||||
} else if &data[..header::SELFMAG] != header::ELFMAG {
|
||||
Err(format!("Elf: Invalid magic: {:?} != {:?}", &data[..4], header::ELFMAG))
|
||||
Err(format!("Elf: Invalid magic: {:?} != {:?}", &data[..header::SELFMAG], header::ELFMAG))
|
||||
} else if data.get(header::EI_CLASS) != Some(&header::ELFCLASS) {
|
||||
Err(format!("Elf: Invalid architecture: {:?} != {:?}", data.get(header::EI_CLASS), header::ELFCLASS))
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user