Skip to content
Snippets Groups Projects
Commit 0b7597f6 authored by Martin Kröning's avatar Martin Kröning :crab:
Browse files

Fix clippy::needless_borrow

parent 6a983ff5
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ impl Archive {
let sh = crate::sh()?;
let archive_path = self.as_ref();
let mut archive_bytes = sh.read_binary_file(&archive_path)?;
let mut archive_bytes = sh.read_binary_file(archive_path)?;
let archive = GoblinArchive::parse(&archive_bytes)?;
let file_offsets = (0..archive.len())
......@@ -89,7 +89,7 @@ impl Archive {
archive_bytes[file_offset + header::EI_OSABI] = header::ELFOSABI_STANDALONE;
}
sh.write_file(&archive_path, archive_bytes)?;
sh.write_file(archive_path, archive_bytes)?;
Ok(())
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment