clippy fixes

This commit is contained in:
Luke Street 2023-09-10 02:20:54 -04:00
parent 18170a96a2
commit 50f913c4eb
1 changed files with 2 additions and 2 deletions

View File

@ -1218,7 +1218,7 @@ fn diff(args: DiffArgs) -> Result<()> {
} }
log::info!("Loading {}", args.elf_file.display()); log::info!("Loading {}", args.elf_file.display());
let mut linked_obj = process_elf(&args.elf_file)?; let linked_obj = process_elf(&args.elf_file)?;
for orig_sym in obj for orig_sym in obj
.symbols .symbols
@ -1369,7 +1369,7 @@ fn apply(args: ApplyArgs) -> Result<()> {
} }
log::info!("Loading {}", args.elf_file.display()); log::info!("Loading {}", args.elf_file.display());
let mut linked_obj = process_elf(&args.elf_file)?; let linked_obj = process_elf(&args.elf_file)?;
let mut replacements: Vec<(SymbolIndex, Option<ObjSymbol>)> = vec![]; let mut replacements: Vec<(SymbolIndex, Option<ObjSymbol>)> = vec![];
for (orig_idx, orig_sym) in obj.symbols.iter().enumerate() { for (orig_idx, orig_sym) in obj.symbols.iter().enumerate() {