Skip to content

Commit

Permalink
Use get instead of indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
loewenheim committed Feb 23, 2022
1 parent f6a8a75 commit 393b5f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symbolic-debuginfo/src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ impl<'data> SymbolMap<'data> {
.symbols
.binary_search_by_key(&address, Self::key)
.ok()?;
Some(&self.symbols[idx])
self.symbols.get(idx)
}

/// Looks up a symbol covering an entire range.
Expand Down

0 comments on commit 393b5f1

Please sign in to comment.