From 6103b0a836b26fab806334062071640757c36ca1 Mon Sep 17 00:00:00 2001 From: sudoBash418 Date: Sun, 8 Sep 2024 01:33:47 -0600 Subject: [PATCH] Fix unused_imports lint --- src/symbolize/gimli.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/symbolize/gimli.rs b/src/symbolize/gimli.rs index 9a82179d..8b0d1969 100644 --- a/src/symbolize/gimli.rs +++ b/src/symbolize/gimli.rs @@ -14,7 +14,7 @@ use core::convert::TryInto; use core::mem; use core::u32; use libc::c_void; -use mystd::ffi::{OsStr, OsString}; +use mystd::ffi::OsString; use mystd::fs::File; use mystd::path::Path; use mystd::prelude::v1::*; @@ -327,14 +327,14 @@ fn create_mapping(lib: &Library) -> Option { /// /// Returns `None` if the path does not contain a `!/` separator. #[cfg(target_os = "android")] -fn extract_zip_path_android(path: &OsStr) -> Option<&OsStr> { +fn extract_zip_path_android(path: &mystd::ffi::OsStr) -> Option<&mystd::ffi::OsStr> { use mystd::os::unix::ffi::OsStrExt; path.as_bytes() .windows(2) .enumerate() .find(|(_, chunk)| chunk == b"!/") - .map(|(index, _)| OsStr::from_bytes(path.as_bytes().split_at(index).0)) + .map(|(index, _)| mystd::ffi::OsStr::from_bytes(path.as_bytes().split_at(index).0)) } // unsafe because this is required to be externally synchronized