Skip to content

Commit 334ea43

Browse files
committed
Rust API misc formatting
1 parent f7b92a5 commit 334ea43

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

plugins/dwarf/shared/src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ pub fn create_section_reader<'a, Endian: 'a + Endianity>(
179179
}
180180
}
181181
// Truncate Mach-O section names to 16 bytes
182-
else if let Some(section) = view.section_by_name("__".to_string() + &section_name[1..section_name.len().min(15)]) {
182+
else if let Some(section) =
183+
view.section_by_name("__".to_string() + &section_name[1..section_name.len().min(15)])
184+
{
183185
Ok(EndianRcSlice::new(
184186
Rc::from(view.read_vec(section.start(), section.len()).as_slice()),
185187
endian,

rust/src/disassembly.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,9 @@ impl From<InstructionTextTokenKind> for BNInstructionTextTokenType {
839839
}
840840
InstructionTextTokenKind::Opcode => BNInstructionTextTokenType::OpcodeToken,
841841
InstructionTextTokenKind::String { .. } => BNInstructionTextTokenType::StringToken,
842-
InstructionTextTokenKind::StringContent { .. } => BNInstructionTextTokenType::StringToken,
842+
InstructionTextTokenKind::StringContent { .. } => {
843+
BNInstructionTextTokenType::StringToken
844+
}
843845
InstructionTextTokenKind::CharacterConstant => {
844846
BNInstructionTextTokenType::CharacterConstantToken
845847
}

rust/src/flowgraph.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl FlowGraph {
6565
let arch = CoreArchitecture::from_raw(arch_ptr);
6666
BNFreeFunction(func_ptr);
6767
Ok(RegularLowLevelILFunction::ref_from_raw(arch, llil_ptr))
68-
},
68+
}
6969
true => Err(()),
7070
}
7171
}

0 commit comments

Comments
 (0)