Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
marxin committed Sep 27, 2024
1 parent 04d3317 commit ee91a62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions linker-diff/src/debug_info_diff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ fn read_file_debug_info(obj: &Object) -> Result<DebugInfo> {

let units: Vec<_> = dwarf.units().collect()?;

Ok(units
units
.iter()
.map(|unit| parse_unit_info(dwarf.unit(*unit)?.unit_ref(&dwarf), unit.unit_length()))
.collect::<Result<DebugInfo>>()?)
.collect::<Result<DebugInfo>>()
}

fn diff_debug_info(
Expand Down Expand Up @@ -133,7 +133,7 @@ fn diff_debug_info(

for (ref_unit_ident, ref_unit) in ok.first().unwrap().iter() {
for (object_id, info) in ok.iter().enumerate().skip(1) {
let unit = info.get(&ref_unit_ident);
let unit = info.get(ref_unit_ident);
match unit {
Some(unit) => {
if ref_unit.size != unit.size {
Expand Down

0 comments on commit ee91a62

Please sign in to comment.