Skip to content

Commit 6bef60c

Browse files
committed
I should add a precommit hook
1 parent 43d602b commit 6bef60c

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/cmd/dol.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -667,9 +667,8 @@ fn update_symbols(
667667
}
668668
}
669669

670-
let Some((target_section_index, target_section)) = obj
671-
.sections
672-
.get_elf_index(rel_reloc.target_section as SectionIndex)
670+
let Some((target_section_index, target_section)) =
671+
obj.sections.get_elf_index(rel_reloc.target_section as SectionIndex)
673672
else {
674673
log::warn!(
675674
"Missing relocation target section {} in module {}; skipping",
@@ -761,10 +760,7 @@ fn create_relocations(
761760
anyhow!("Failed to locate DOL section at {:#010X}", rel_reloc.addend)
762761
})?
763762
} else {
764-
match target_obj
765-
.sections
766-
.get_elf_index(rel_reloc.target_section as SectionIndex)
767-
{
763+
match target_obj.sections.get_elf_index(rel_reloc.target_section as SectionIndex) {
768764
Some(v) => v,
769765
None => {
770766
log::warn!(

0 commit comments

Comments
 (0)