summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-02-11 14:30:58 -0500
committerMason Reed <mason@vector35.com>2025-02-11 14:30:58 -0500
commit334ea436bf65edcc9456f4850f6bb9b5497b7be0 (patch)
treefe0d0c57809564898afef55b01b5df2dec205399 /rust/src
parentf7b92a5167456adb9580d40ff0b08bf2896cb33e (diff)
Rust API misc formatting
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/disassembly.rs4
-rw-r--r--rust/src/flowgraph.rs2
2 files changed, 4 insertions, 2 deletions
diff --git a/rust/src/disassembly.rs b/rust/src/disassembly.rs
index 290e48d2..94f76f96 100644
--- a/rust/src/disassembly.rs
+++ b/rust/src/disassembly.rs
@@ -839,7 +839,9 @@ impl From<InstructionTextTokenKind> for BNInstructionTextTokenType {
}
InstructionTextTokenKind::Opcode => BNInstructionTextTokenType::OpcodeToken,
InstructionTextTokenKind::String { .. } => BNInstructionTextTokenType::StringToken,
- InstructionTextTokenKind::StringContent { .. } => BNInstructionTextTokenType::StringToken,
+ InstructionTextTokenKind::StringContent { .. } => {
+ BNInstructionTextTokenType::StringToken
+ }
InstructionTextTokenKind::CharacterConstant => {
BNInstructionTextTokenType::CharacterConstantToken
}
diff --git a/rust/src/flowgraph.rs b/rust/src/flowgraph.rs
index 69e97bb9..8c483958 100644
--- a/rust/src/flowgraph.rs
+++ b/rust/src/flowgraph.rs
@@ -65,7 +65,7 @@ impl FlowGraph {
let arch = CoreArchitecture::from_raw(arch_ptr);
BNFreeFunction(func_ptr);
Ok(RegularLowLevelILFunction::ref_from_raw(arch, llil_ptr))
- },
+ }
true => Err(()),
}
}