Skip to content

Commit 925061e

Browse files
committed
Fix
1 parent 7d75a04 commit 925061e

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
@@ -348,15 +348,15 @@ fn locate_build_id(build_id: &[u8]) -> Option<PathBuf> {
348348

349349
let mut path =
350350
String::with_capacity(BUILD_ID_PATH.len() + BUILD_ID_SUFFIX.len() + build_id.len() * 2 + 1);
351-
path.extend(BUILD_ID_PATH);
351+
path.push_str(BUILD_ID_PATH);
352352
path.push(char::from_digit((build_id[0] >> 4) as u32, 16)?);
353353
path.push(char::from_digit((build_id[0] & 0xf) as u32, 16)?);
354354
path.push('/');
355355
for byte in &build_id[1..] {
356356
path.push(char::from_digit((byte >> 4) as u32, 16)?);
357357
path.push(char::from_digit((byte & 0xf) as u32, 16)?);
358358
}
359-
path.extend(BUILD_ID_SUFFIX);
359+
path.push_str(BUILD_ID_SUFFIX);
360360
Some(PathBuf::from(path))
361361
}
362362

0 commit comments

Comments
 (0)