Skip to content

Commit 9c8812e

Browse files
committed
Fix introduced compile failures
1 parent 78daad3 commit 9c8812e

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

src/symbolize/gimli/coff.rs

Lines changed: 1 addition & 1 deletion
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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use super::mystd::os::unix::ffi::OsStrExt;
66
use super::mystd::path::{Path, PathBuf};
77
use super::Either;
88
use super::{gimli, Context, Endian, EndianSlice, Mapping, Stash};
9-
use alloc::str::String;
9+
use alloc::string::String;
1010
use alloc::sync::Arc;
1111
use alloc::vec::Vec;
1212
use core::convert::{TryFrom, TryInto};
@@ -422,8 +422,8 @@ fn debug_path_exists() -> bool {
422422
/// The format of build id paths is documented at:
423423
/// https://sourceware.org/gdb/onlinedocs/gdb/Separate-Debug-Files.html
424424
fn locate_build_id(build_id: &[u8]) -> Option<PathBuf> {
425-
const BUILD_ID_PATH: &[u8] = b"/usr/lib/debug/.build-id/";
426-
const BUILD_ID_SUFFIX: &[u8] = b".debug";
425+
const BUILD_ID_PATH: &str = "/usr/lib/debug/.build-id/";
426+
const BUILD_ID_SUFFIX: &str = ".debug";
427427

428428
if build_id.len() < 2 {
429429
return None;
@@ -435,15 +435,15 @@ fn locate_build_id(build_id: &[u8]) -> Option<PathBuf> {
435435

436436
let mut path =
437437
String::with_capacity(BUILD_ID_PATH.len() + BUILD_ID_SUFFIX.len() + build_id.len() * 2 + 1);
438-
path.extend(BUILD_ID_PATH);
438+
path.push_str(BUILD_ID_PATH);
439439
path.push(char::from_digit((build_id[0] >> 4) as u32, 16)?);
440440
path.push(char::from_digit((build_id[0] & 0xf) as u32, 16)?);
441441
path.push('/');
442442
for byte in &build_id[1..] {
443443
path.push(char::from_digit((byte >> 4) as u32, 16)?);
444444
path.push(char::from_digit((byte & 0xf) as u32, 16)?);
445445
}
446-
path.extend(BUILD_ID_SUFFIX);
446+
path.push_str(BUILD_ID_SUFFIX);
447447
Some(PathBuf::from(path))
448448
}
449449

src/symbolize/gimli/macho.rs

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)