Skip to content

Commit

Permalink
zero cost, eh?
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Jul 6, 2023
1 parent eeab658 commit a5523dc
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/symbolize/gimli/parse_running_mmaps_unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,10 @@ impl FromStr for MapsEntry {
let mut parts = s
.split_ascii_whitespace();
let range_str = parts.next().ok_or(missing_field)?;
// let perms_str = parts.next().ok_or(missing_field)?;
// let offset_str = parts.next().ok_or(missing_field)?;
// let dev_str = parts.next().ok_or(missing_field)?;
// let inode_str = parts.next().ok_or(missing_field)?;
for _ in 0..4 {
let _ = parts.next().ok_or(missing_field)?;
}
let perms_str = parts.next().ok_or(missing_field)?;
let offset_str = parts.next().ok_or(missing_field)?;
let dev_str = parts.next().ok_or(missing_field)?;
let inode_str = parts.next().ok_or(missing_field)?;
let pathname_str = parts.next().unwrap_or(""); // pathname may be omitted.

let hex = |s| usize::from_str_radix(s, 16).map_err(|_| parse_err);
Expand Down

0 comments on commit a5523dc

Please sign in to comment.