Skip to content

Commit 40a2c91

Browse files
tool: fix clippy
Signed-off-by: Ivan Velickovic <i.velickovic@unsw.edu.au>
1 parent 7357746 commit 40a2c91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tool/microkit/src/elf.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ impl ElfFile {
220220
pub fn from_path(path: &Path) -> Result<ElfFile, String> {
221221
let bytes = match fs::read(path) {
222222
Ok(bytes) => bytes,
223-
Err(err) => return Err(format!("failed to read ELF: {}", err)),
223+
Err(err) => return Err(format!("failed to read ELF: {err}")),
224224
};
225225

226226
let magic = &bytes[0..4];
@@ -241,7 +241,7 @@ impl ElfFile {
241241
hdr_size = std::mem::size_of::<ElfHeader64>();
242242
word_size = 64;
243243
}
244-
_ => return Err(format!("invalid class '{}'", class)),
244+
_ => return Err(format!("invalid class '{class}'")),
245245
};
246246

247247
// Now need to read the header into a struct

0 commit comments

Comments
 (0)