Skip to content

Commit 2c7ac87

Browse files
committed
[Rust] Misc formatting
1 parent 414bc80 commit 2c7ac87

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

plugins/dwarf/dwarf_import/src/dwarfdebuginfo.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,11 @@ impl DebugInfoBuilder {
397397
} else {
398398
x
399399
}
400-
},
400+
}
401401
None => {
402402
// Anonymous variable, generate name
403403
format!("debug_var_{}", offset)
404-
},
404+
}
405405
};
406406

407407
let Some(function_index) = fn_idx else {
@@ -476,7 +476,7 @@ impl DebugInfoBuilder {
476476
});
477477

478478
offset + guessed_sp_adjustment.unwrap_or(0)
479-
},
479+
}
480480
};
481481

482482
if adjusted_offset > 0 {
@@ -589,7 +589,7 @@ impl DebugInfoBuilder {
589589
let return_type = match function.return_type {
590590
Some(return_type_id) => {
591591
Conf::new(self.get_type(return_type_id).unwrap().ty.clone(), 128)
592-
},
592+
}
593593
_ => Conf::new(Type::void(), 0),
594594
};
595595

@@ -669,11 +669,11 @@ impl DebugInfoBuilder {
669669
match existing_functions.len().cmp(&1) {
670670
Ordering::Greater => {
671671
warn!("Multiple existing functions at address {address:08x}. One or more functions at this address may have the wrong platform information. Please report this binary.");
672-
},
672+
}
673673
Ordering::Equal => {
674674
func.platform = Some(existing_functions.get(0).platform())
675-
},
676-
Ordering::Less => {},
675+
}
676+
Ordering::Less => {}
677677
}
678678
}
679679
}

plugins/dwarf/dwarf_import/src/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fn get_parameters<R: ReaderType>(
7171
} else {
7272
result.push(None)
7373
}
74-
},
74+
}
7575
constants::DW_TAG_unspecified_parameters => variable_arguments = true,
7676
_ => (),
7777
}

plugins/warp/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::convert::{bn_comment_to_comment, bn_var_to_location, from_bn_symbol,
33
use binaryninja::architecture::{
44
Architecture, ImplicitRegisterExtend, Register as BNRegister, RegisterInfo,
55
};
6-
use binaryninja::basic_block::{BasicBlock as BNBasicBlock};
6+
use binaryninja::basic_block::BasicBlock as BNBasicBlock;
77
use binaryninja::binary_view::{BinaryView, BinaryViewExt};
88
use binaryninja::confidence::MAX_CONFIDENCE;
99
use binaryninja::function::{Function as BNFunction, NativeBlock};

0 commit comments

Comments
 (0)