Skip to content

Commit dfa7a29

Browse files
committed
[WARP] Misc formatting fixes
1 parent 6899810 commit dfa7a29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugins/warp/src/lib.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,8 @@ pub fn relocatable_regions(view: &BinaryView) -> Vec<Range<u64>> {
407407
// at zero, masking non-relocatable instructions, since then we have started adjusting the
408408
// image base to 0x10000 or higher so we can use segments directly, which improves the accuracy
409409
// of function GUIDs for binaries which have no or bad section definitions, common of firmware.
410-
let mut ranges = view.segments()
410+
let mut ranges = view
411+
.segments()
411412
.iter()
412413
.filter(|s| s.address_range().start != 0)
413414
.map(|s| s.address_range())
@@ -417,7 +418,8 @@ pub fn relocatable_regions(view: &BinaryView) -> Vec<Range<u64>> {
417418
// Realistically only happens if the only defined segment was based at 0, in which case
418419
// we hope the user has set up correct sections. If not we are going to be masking off too many
419420
// or too little instructions.
420-
ranges = view.sections()
421+
ranges = view
422+
.sections()
421423
.iter()
422424
.map(|s| s.address_range())
423425
.collect::<Vec<_>>();

0 commit comments

Comments
 (0)