From 36a06931b3eac492eb1e609949e2cc5a3a03bf57 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Tue, 30 Sep 2025 09:55:05 -0400 Subject: Fix rust api formatting warnings --- rust/src/low_level_il/function.rs | 10 ++++++++-- rust/src/low_level_il/lifting.rs | 6 +++++- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'rust/src') 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>(&self, loc: L) -> Option> { + pub fn instruction_at>( + &self, + loc: L, + ) -> Option> { 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>(&self, loc: L) -> Vec> { + pub fn instructions_at>( + &self, + loc: L, + ) -> Vec> { 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; -- cgit v1.3.1