From fd5a89e174e01b0adb089dcf8f6da36cf5008443 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Mon, 29 Sep 2025 14:53:05 -0400 Subject: Fix rust warnings about lifetimes introduced by 1.89.0 --- rust/src/low_level_il/function.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'rust/src/low_level_il/function.rs') diff --git a/rust/src/low_level_il/function.rs b/rust/src/low_level_il/function.rs index ca6508c9..6d2e4239 100644 --- a/rust/src/low_level_il/function.rs +++ b/rust/src/low_level_il/function.rs @@ -95,7 +95,7 @@ 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 +103,7 @@ 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() @@ -146,7 +146,7 @@ where pub fn instruction_from_index( &self, index: LowLevelInstructionIndex, - ) -> Option> { + ) -> Option> { if index.0 >= self.instruction_count() { None } else { @@ -178,7 +178,7 @@ where } } - pub fn basic_blocks(&self) -> Array>> { + pub fn basic_blocks(&self) -> Array>> { use binaryninjacore_sys::BNGetLowLevelILBasicBlockList; unsafe { @@ -195,7 +195,7 @@ where pub fn basic_block_containing_index( &self, index: LowLevelInstructionIndex, - ) -> Option>>> { + ) -> Option>>> { let block = unsafe { BNGetLowLevelILBasicBlockForInstruction(self.handle, index.0) }; if block.is_null() { None @@ -259,7 +259,7 @@ impl LowLevelILFunction { pub fn get_ssa_register_uses( &self, reg: LowLevelILSSARegisterKind, - ) -> Vec> { + ) -> Vec> { use binaryninjacore_sys::BNGetLowLevelILSSARegisterUses; let register_id = match reg { LowLevelILSSARegisterKind::Full { kind, .. } => kind.id(), @@ -287,7 +287,7 @@ impl LowLevelILFunction { pub fn get_ssa_register_definition( &self, reg: &LowLevelILSSARegisterKind, - ) -> Option> { + ) -> Option> { use binaryninjacore_sys::BNGetLowLevelILSSARegisterDefinition; let register_id = match reg { LowLevelILSSARegisterKind::Full { kind, .. } => kind.id(), -- cgit v1.3.1