Skip to content

Commit c7aa97a

Browse files
committed
Clippy
1 parent 280a7dc commit c7aa97a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/cmd/dwarf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ where
353353
}
354354
}
355355
}
356-
let mut builder = object::build::elf::Builder::read(&*raw_elf)?;
356+
let mut builder = object::build::elf::Builder::read(raw_elf)?;
357357

358358
// Remove original debug sections
359359
for section in builder.sections.iter_mut() {

src/util/dwarf/process.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,7 +1271,7 @@ fn ref_fixup_subroutine_tag(
12711271
let return_type = return_type.unwrap_or_else(|| Type {
12721272
kind: TypeKind::Fundamental(FundType::Void),
12731273
modifiers: vec![],
1274-
entry_id: dwarf2_types.fundamental_map.get(&FundType::Void).unwrap().clone(),
1274+
entry_id: *dwarf2_types.fundamental_map.get(&FundType::Void).unwrap(),
12751275
});
12761276

12771277
let mut name_written = false;
@@ -2459,5 +2459,5 @@ fn get_start_end_adress_of_parent(
24592459
if *start_address == *end_address { *end_address + 4 } else { *end_address };
24602460
return Some((*start_address, end_address_to_use));
24612461
}
2462-
return None;
2462+
None
24632463
}

0 commit comments

Comments
 (0)