Skip to content

Commit 7d75a04

Browse files
committed
Make BUILD_ID_{PATH,SUFFIX} str
1 parent 53cc4fc commit 7d75a04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/symbolize/gimli/elf.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ fn debug_path_exists() -> bool {
335335
/// The format of build id paths is documented at:
336336
/// https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html
337337
fn locate_build_id(build_id: &[u8]) -> Option<PathBuf> {
338-
const BUILD_ID_PATH: &[u8] = b"/usr/lib/debug/.build-id/";
339-
const BUILD_ID_SUFFIX: &[u8] = b".debug";
338+
const BUILD_ID_PATH: &str = "/usr/lib/debug/.build-id/";
339+
const BUILD_ID_SUFFIX: &str = ".debug";
340340

341341
if build_id.len() < 2 {
342342
return None;

0 commit comments

Comments
 (0)