There was an error while loading. Please reload this page.
1 parent 7357746 commit 40a2c91Copy full SHA for 40a2c91
1 file changed
tool/microkit/src/elf.rs
@@ -220,7 +220,7 @@ impl ElfFile {
220
pub fn from_path(path: &Path) -> Result<ElfFile, String> {
221
let bytes = match fs::read(path) {
222
Ok(bytes) => bytes,
223
- Err(err) => return Err(format!("failed to read ELF: {}", err)),
+ Err(err) => return Err(format!("failed to read ELF: {err}")),
224
};
225
226
let magic = &bytes[0..4];
@@ -241,7 +241,7 @@ impl ElfFile {
241
hdr_size = std::mem::size_of::<ElfHeader64>();
242
word_size = 64;
243
}
244
- _ => return Err(format!("invalid class '{}'", class)),
+ _ => return Err(format!("invalid class '{class}'")),
245
246
247
// Now need to read the header into a struct
0 commit comments