Skip to content

Commit

Permalink
Update dependencies and fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Oct 9, 2023
1 parent 8528070 commit 170fada
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 79 deletions.
134 changes: 57 additions & 77 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion symbolic-debuginfo/src/function_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ struct FunctionBuilderInlinee<'s> {
/// Implement ordering in DFS order, i.e. first by address and then by depth.
impl<'s> PartialOrd for FunctionBuilderInlinee<'s> {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
(self.address, self.depth).partial_cmp(&(other.address, other.depth))
Some(self.cmp(other))
}
}

Expand Down
2 changes: 1 addition & 1 deletion symbolic-symcache/src/lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ impl<'data> SymCache<'data> {
let source_location_start = (self.source_locations.len() - self.ranges.len()) as u32;
let mut source_location_idx = match self.ranges.binary_search_by_key(&addr, |r| r.0) {
Ok(idx) => source_location_start + idx as u32,
Err(idx) if idx == 0 => u32::MAX,
Err(0) => u32::MAX,
Err(idx) => source_location_start + idx as u32 - 1,
};

Expand Down

0 comments on commit 170fada

Please sign in to comment.