Skip to content

Commit 4f755f0

Browse files
Fix formatting
1 parent 2c8d446 commit 4f755f0

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

objdiff-core/src/arch/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ impl dyn Arch {
340340

341341
pub trait Arch: Any + Debug + Send + Sync {
342342
/// Finishes arch-specific initialization that must be done after sections have been combined.
343-
fn post_init(&mut self, _sections: &[Section], _symbols: &[Symbol], _symbol_indices: &[usize]) {}
343+
fn post_init(&mut self, _sections: &[Section], _symbols: &[Symbol], _symbol_indices: &[usize]) {
344+
}
344345

345346
/// Generate a list of instructions references (offset, size, opcode) from the given code.
346347
///

objdiff-core/src/arch/ppc/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -476,13 +476,11 @@ impl Arch for ArchPpc {
476476
fn post_init(&mut self, _sections: &[Section], _symbols: &[Symbol], symbol_indices: &[usize]) {
477477
// Change the indices used as keys from the original symbol indices to the new symbol array indices
478478
if let Some(extab) = self.extab.as_ref() {
479-
let new_map: BTreeMap<usize, ExceptionInfo> = extab.iter().map(|e| {
480-
(symbol_indices[*e.0 + 1], e.1.clone())
481-
}).collect();
479+
let new_map: BTreeMap<usize, ExceptionInfo> =
480+
extab.iter().map(|e| (symbol_indices[*e.0 + 1], e.1.clone())).collect();
482481

483482
self.extab.replace(new_map);
484483
}
485-
486484
}
487485
}
488486

0 commit comments

Comments
 (0)