We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce72d89 commit 015cdb8Copy full SHA for 015cdb8
src/symbolize/gimli/parse_running_mmaps_unix.rs
@@ -115,7 +115,7 @@ impl FromStr for MapsEntry {
115
}
116
117
// Pathname may be omitted in which case it will be empty
118
- let pathname_str = s.trim();
+ let pathname_str = s.trim_start();
119
120
let hex = |s| usize::from_str_radix(s, 16).map_err(|_| "Couldn't parse hex number");
121
let address = if let Some((start, limit)) = range_str.split_once('-') {
@@ -275,7 +275,7 @@ fn check_maps_entry_parsing_32bit() {
275
offset: 0x00000000,
276
dev: (0x08, 0x01),
277
inode: 0x60662705,
278
- pathname: "/executable/path/with multiple-continues spaces".into(),
+ pathname: "/executable/path/with multiple-continues spaces ".into(),
279
280
);
281
assert_eq!(
0 commit comments