summaryrefslogtreecommitdiff
path: root/rust/src/low_level_il/function.rs
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/src/low_level_il/function.rs
parentfd5a89e174e01b0adb089dcf8f6da36cf5008443 (diff)
Fix rust api formatting warnings
Diffstat (limited to 'rust/src/low_level_il/function.rs')
-rw-r--r--rust/src/low_level_il/function.rs10
1 files changed, 8 insertions, 2 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()