Skip to content

Commit 36a0693

Browse files
committed
Fix rust api formatting warnings
1 parent fd5a89e commit 36a0693

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

rust/src/low_level_il/function.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,21 @@ where
9595
}
9696
}
9797

98-
pub fn instruction_at<L: Into<Location>>(&self, loc: L) -> Option<LowLevelILInstruction<'_, M, F>> {
98+
pub fn instruction_at<L: Into<Location>>(
99+
&self,
100+
loc: L,
101+
) -> Option<LowLevelILInstruction<'_, M, F>> {
99102
Some(LowLevelILInstruction::new(
100103
self,
101104
self.instruction_index_at(loc)?,
102105
))
103106
}
104107

105108
/// Get all the instructions for a given location.
106-
pub fn instructions_at<L: Into<Location>>(&self, loc: L) -> Vec<LowLevelILInstruction<'_, M, F>> {
109+
pub fn instructions_at<L: Into<Location>>(
110+
&self,
111+
loc: L,
112+
) -> Vec<LowLevelILInstruction<'_, M, F>> {
107113
let loc = loc.into();
108114
self.instruction_indexes_at(loc)
109115
.iter()

rust/src/low_level_il/lifting.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,11 @@ impl LowLevelILMutableFunction {
10161016
LowLevelILExpression::new(self, LowLevelExpressionIndex(expr_idx))
10171017
}
10181018

1019-
pub fn const_ptr_sized(&self, size: usize, val: u64) -> LowLevelILMutableExpression<'_, ValueExpr> {
1019+
pub fn const_ptr_sized(
1020+
&self,
1021+
size: usize,
1022+
val: u64,
1023+
) -> LowLevelILMutableExpression<'_, ValueExpr> {
10201024
use binaryninjacore_sys::BNLowLevelILAddExpr;
10211025
use binaryninjacore_sys::BNLowLevelILOperation::LLIL_CONST_PTR;
10221026

0 commit comments

Comments
 (0)