From f5387f2340ef4e9772742bbac4f7c5d202e27b64 Mon Sep 17 00:00:00 2001 From: Joe Rozner Date: Fri, 31 May 2024 13:06:44 -0700 Subject: [PATCH] Run cargo fmt --- src/architecture.rs | 87 +++++++++++---------------------------------- 1 file changed, 20 insertions(+), 67 deletions(-) diff --git a/src/architecture.rs b/src/architecture.rs index 55ecfcb..259a19c 100644 --- a/src/architecture.rs +++ b/src/architecture.rs @@ -5,7 +5,7 @@ use crate::register::Register; use binaryninja::{ architecture::{ Architecture, BranchInfo, CoreArchitecture, CustomArchitectureHandle, FlagCondition, - InstructionInfo, UnusedRegisterStack, UnusedRegisterStackInfo, UnusedIntrinsic, + InstructionInfo, UnusedIntrinsic, UnusedRegisterStack, UnusedRegisterStackInfo, }, disassembly::{InstructionTextToken, InstructionTextTokenContents}, llil::{LiftedExpr, Lifter}, @@ -174,8 +174,9 @@ impl Architecture for Msp430 { ), Some(Operand::Immediate(addr)) => info .add_branch(BranchInfo::Unconditional(*addr as u64), Some(self.handle)), - Some(Operand::Constant(_)) => info - .add_branch(BranchInfo::Unconditional(addr), Some(self.handle)), + Some(Operand::Constant(_)) => { + info.add_branch(BranchInfo::Unconditional(addr), Some(self.handle)) + } Some(Operand::RegisterIndirect(_)) | Some(Operand::RegisterIndirectAutoIncrement(_)) => { info.add_branch(BranchInfo::Indirect, Some(self.handle)) @@ -610,18 +611,9 @@ fn generate_operand_tokens(source: &Operand, addr: u64, call: bool) -> Vec { @@ -635,18 +627,9 @@ fn generate_operand_tokens(source: &Operand, addr: u64, call: bool) -> Vec { @@ -660,18 +643,9 @@ fn generate_operand_tokens(source: &Operand, addr: u64, call: bool) -> Vec { @@ -685,18 +659,9 @@ fn generate_operand_tokens(source: &Operand, addr: u64, call: bool) -> Vec { @@ -710,18 +675,12 @@ fn generate_operand_tokens(source: &Operand, addr: u64, call: bool) -> Vec Vec { @@ -749,10 +705,7 @@ fn generate_operand_tokens(source: &Operand, addr: u64, call: bool) -> Vec