Skip to content

Commit 7b34b55

Browse files
Make compiler shut up
1 parent 8b3bb28 commit 7b34b55

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

  • objdiff-core/src/arch/ppc

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ impl Arch for ArchPpc {
475475

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
478-
if let Some(new_map) = Self::convert_extab_map_indices(&self, symbol_indices) {
478+
if let Some(new_map) = Self::convert_extab_map_indices(self, symbol_indices) {
479479
self.extab.replace(new_map);
480480
}
481481
}
@@ -486,11 +486,14 @@ impl ArchPpc {
486486
self.extab.as_ref()?.get(&symbol_index)
487487
}
488488

489-
pub fn convert_extab_map_indices(&self, symbol_indices: &[usize]) -> Option<BTreeMap<usize, ExceptionInfo>> {
489+
pub fn convert_extab_map_indices(
490+
&self,
491+
symbol_indices: &[usize]
492+
) -> Option<BTreeMap<usize, ExceptionInfo>> {
490493
let new_map: BTreeMap<usize, ExceptionInfo> =
491494
self.extab.as_ref()?.iter().map(|e| (symbol_indices[*e.0 + 1], e.1.clone())).collect();
492495

493-
return Some(new_map)
496+
Some(new_map)
494497
}
495498
}
496499

0 commit comments

Comments
 (0)