diff options
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/low_level_il/function.rs | 10 | ||||
| -rw-r--r-- | rust/src/low_level_il/lifting.rs | 6 |
2 files changed, 13 insertions, 3 deletions
diff --git a/rust/src/low_level_il/function.rs b/rust/src/low_level_il/function.rs index 6d2e4239..b473b64d 100644 --- a/rust/src/low_level_il/function.rs +++ b/rust/src/low_level_il/function.rs @@ -95,7 +95,10 @@ where } } - pub fn instruction_at<L: Into<Location>>(&self, loc: L) -> Option<LowLevelILInstruction<'_, M, F>> { + pub fn instruction_at<L: Into<Location>>( + &self, + loc: L, + ) -> Option<LowLevelILInstruction<'_, M, F>> { Some(LowLevelILInstruction::new( self, self.instruction_index_at(loc)?, @@ -103,7 +106,10 @@ where } /// Get all the instructions for a given location. - pub fn instructions_at<L: Into<Location>>(&self, loc: L) -> Vec<LowLevelILInstruction<'_, M, F>> { + pub fn instructions_at<L: Into<Location>>( + &self, + loc: L, + ) -> Vec<LowLevelILInstruction<'_, M, F>> { let loc = loc.into(); self.instruction_indexes_at(loc) .iter() diff --git a/rust/src/low_level_il/lifting.rs b/rust/src/low_level_il/lifting.rs index 09117150..91a3b53e 100644 --- a/rust/src/low_level_il/lifting.rs +++ b/rust/src/low_level_il/lifting.rs @@ -1016,7 +1016,11 @@ impl LowLevelILMutableFunction { LowLevelILExpression::new(self, LowLevelExpressionIndex(expr_idx)) } - pub fn const_ptr_sized(&self, size: usize, val: u64) -> LowLevelILMutableExpression<'_, ValueExpr> { + pub fn const_ptr_sized( + &self, + size: usize, + val: u64, + ) -> LowLevelILMutableExpression<'_, ValueExpr> { use binaryninjacore_sys::BNLowLevelILAddExpr; use binaryninjacore_sys::BNLowLevelILOperation::LLIL_CONST_PTR; |
