summaryrefslogtreecommitdiff
path: root/rust
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2025-09-30 09:55:05 -0400
committerJosh Ferrell <josh@vector35.com>2025-09-30 09:55:05 -0400
commit36a06931b3eac492eb1e609949e2cc5a3a03bf57 (patch)
tree2aa9d79f83a84d8a82a78fb5921c909f4f8e42d2 /rust
parentfd5a89e174e01b0adb089dcf8f6da36cf5008443 (diff)
Fix rust api formatting warnings
Diffstat (limited to 'rust')
-rw-r--r--rust/src/low_level_il/function.rs10
-rw-r--r--rust/src/low_level_il/lifting.rs6
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;