Skip to content

Commit dc02f37

Browse files
committed
Fix introduced compile failures
1 parent 82852e6 commit dc02f37

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/symbolize/gimli/coff.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::mystd::fs::Path;
1+
use super::mystd::path::Path;
22
use super::{gimli, Context, Endian, EndianSlice, Mapping, Stash};
33
use alloc::sync::Arc;
44
use alloc::vec::Vec;

src/symbolize/gimli/elf.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use super::mystd::os::unix::ffi::OsStrExt;
44
use super::mystd::path::{Path, PathBuf};
55
use super::Either;
66
use super::{gimli, Context, Endian, EndianSlice, Mapping, Stash};
7-
use alloc::str::String;
7+
use alloc::string::String;
88
use alloc::sync::Arc;
99
use alloc::vec::Vec;
1010
use core::convert::{TryFrom, TryInto};
@@ -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;
@@ -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

src/symbolize/gimli/macho.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use super::mystd::fs::Path;
1+
use super::mystd::path::Path;
22
use super::{gimli, Context, Endian, EndianSlice, Mapping, Stash};
33
use alloc::boxed::Box;
44
use alloc::sync::Arc;

src/symbolize/gimli/parse_running_mmaps_unix.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use super::mystd::ffi::OsString;
66
use super::mystd::fs::File;
77
use super::mystd::io::Read;
8-
use alloc::str::String;
8+
use alloc::string::String;
99
use alloc::vec::Vec;
1010
use core::str::FromStr;
1111

src/symbolize/gimli/xcoff.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use super::mystd::ffi::{OsStr, OsString};
2-
use super::mystd::fs::Path;
32
use super::mystd::os::unix::ffi::OsStrExt;
3+
use super::mystd::path::Path;
44
use super::{gimli, Context, Endian, EndianSlice, Mapping, Stash};
55
use alloc::sync::Arc;
66
use alloc::vec::Vec;

0 commit comments

Comments
 (0)