We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d75a04 commit 925061eCopy full SHA for 925061e
src/symbolize/gimli/elf.rs
@@ -348,15 +348,15 @@ fn locate_build_id(build_id: &[u8]) -> Option<PathBuf> {
348
349
let mut path =
350
String::with_capacity(BUILD_ID_PATH.len() + BUILD_ID_SUFFIX.len() + build_id.len() * 2 + 1);
351
- path.extend(BUILD_ID_PATH);
+ path.push_str(BUILD_ID_PATH);
352
path.push(char::from_digit((build_id[0] >> 4) as u32, 16)?);
353
path.push(char::from_digit((build_id[0] & 0xf) as u32, 16)?);
354
path.push('/');
355
for byte in &build_id[1..] {
356
path.push(char::from_digit((byte >> 4) as u32, 16)?);
357
path.push(char::from_digit((byte & 0xf) as u32, 16)?);
358
}
359
- path.extend(BUILD_ID_SUFFIX);
+ path.push_str(BUILD_ID_SUFFIX);
360
Some(PathBuf::from(path))
361
362
0 commit comments