Skip to content

Commit

Permalink
Make BUILD_ID_{PATH,SUFFIX} str
Browse files Browse the repository at this point in the history
  • Loading branch information
CraftSpider committed Sep 7, 2024
1 parent 53cc4fc commit 7d75a04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/symbolize/gimli/elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ fn debug_path_exists() -> bool {
/// The format of build id paths is documented at:
/// https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html
fn locate_build_id(build_id: &[u8]) -> Option<PathBuf> {
const BUILD_ID_PATH: &[u8] = b"/usr/lib/debug/.build-id/";
const BUILD_ID_SUFFIX: &[u8] = b".debug";
const BUILD_ID_PATH: &str = "/usr/lib/debug/.build-id/";
const BUILD_ID_SUFFIX: &str = ".debug";

if build_id.len() < 2 {
return None;
Expand Down

0 comments on commit 7d75a04

Please sign in to comment.