Skip to content

Commit 4204530

Browse files
author
gh-tr
committed
Fixing automated formatting
1 parent d528ac4 commit 4204530

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

src/symbolize/gimli/libs_dl_iterate_phdr.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ fn infer_current_exe(base_addr: usize) -> OsString {
3434
// `info` should be a valid pointers.
3535
// `vec` should be a valid pointer to a `std::Vec`.
3636
unsafe extern "C" fn callback(
37-
#[cfg(not(target_os = "nto"))]
38-
info: *mut libc::dl_phdr_info,
39-
#[cfg(target_os = "nto")]
40-
info: *const libc::dl_phdr_info,
37+
#[cfg(not(target_os = "nto"))] info: *mut libc::dl_phdr_info,
38+
#[cfg(target_os = "nto")] info: *const libc::dl_phdr_info,
4139
_size: libc::size_t,
4240
vec: *mut libc::c_void,
4341
) -> libc::c_int {

src/symbolize/gimli/parse_running_mmaps_unix_default.rs

+14-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,14 @@ impl FromStr for MapsEntry {
5757
let inode = hex(inode_str)?;
5858
let pathname = pathname_str.into();
5959

60-
Ok(MapsEntry { address, perms, offset, dev, inode, pathname })
60+
Ok(MapsEntry {
61+
address,
62+
perms,
63+
offset,
64+
dev,
65+
inode,
66+
pathname,
67+
})
6168
}
6269
}
6370

@@ -95,7 +102,9 @@ fn check_maps_entry_parsing_64bit() {
95102
}
96103
);
97104
assert_eq!(
98-
"35b1a21000-35b1a22000 rw-p 00000000 00:00 0".parse::<MapsEntry>().unwrap(),
105+
"35b1a21000-35b1a22000 rw-p 00000000 00:00 0"
106+
.parse::<MapsEntry>()
107+
.unwrap(),
99108
MapsEntry {
100109
address: (0x35b1a21000, 0x35b1a22000),
101110
perms: ['r', 'w', '-', 'p'],
@@ -145,7 +154,9 @@ fn check_maps_entry_parsing_32bit() {
145154
}
146155
);
147156
assert_eq!(
148-
"b7e02000-b7e03000 rw-p 00000000 00:00 0".parse::<MapsEntry>().unwrap(),
157+
"b7e02000-b7e03000 rw-p 00000000 00:00 0"
158+
.parse::<MapsEntry>()
159+
.unwrap(),
149160
MapsEntry {
150161
address: (0xb7e02000, 0xb7e03000),
151162
perms: ['r', 'w', '-', 'p'],

src/symbolize/gimli/parse_running_mmaps_unix_nto.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ impl FromStr for MapsEntry {
4848
let inode = hex(ino_str)?;
4949
let pathname = pathname_str.into();
5050

51-
Ok(MapsEntry { address, perms, offset, dev, inode, pathname })
51+
Ok(MapsEntry {
52+
address,
53+
perms,
54+
offset,
55+
dev,
56+
inode,
57+
pathname,
58+
})
5259
}
5360
}
5461

0 commit comments

Comments
 (0)