summaryrefslogtreecommitdiff
path: root/plugins/dwarf/shared
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 /plugins/dwarf/shared
parentf7b92a5167456adb9580d40ff0b08bf2896cb33e (diff)
Rust API misc formatting
Diffstat (limited to 'plugins/dwarf/shared')
-rw-r--r--plugins/dwarf/shared/src/lib.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/dwarf/shared/src/lib.rs b/plugins/dwarf/shared/src/lib.rs
index ea854238..e769b44e 100644
--- a/plugins/dwarf/shared/src/lib.rs
+++ b/plugins/dwarf/shared/src/lib.rs
@@ -179,7 +179,9 @@ pub fn create_section_reader<'a, Endian: 'a + Endianity>(
}
}
// Truncate Mach-O section names to 16 bytes
- else if let Some(section) = view.section_by_name("__".to_string() + &section_name[1..section_name.len().min(15)]) {
+ else if let Some(section) =
+ view.section_by_name("__".to_string() + &section_name[1..section_name.len().min(15)])
+ {
Ok(EndianRcSlice::new(
Rc::from(view.read_vec(section.start(), section.len()).as_slice()),
endian,