Bump object

This commit is contained in:
Laurențiu Nicola 2021-05-24 16:35:23 +03:00
parent 47afa4a5fc
commit d525cfc85a
4 changed files with 6 additions and 12 deletions

View file

@ -27,7 +27,7 @@ fn find_registrar_symbol(file: &Path) -> io::Result<Option<String>> {
let file = File::open(file)?;
let buffer = unsafe { Mmap::map(&file)? };
Ok(object::File::parse(&buffer)
Ok(object::File::parse(&*buffer)
.map_err(invalid_data_err)?
.exports()
.map_err(invalid_data_err)?