Skip to content

Commit

Permalink
Fix unused_imports lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoBash418 committed Sep 8, 2024
1 parent d747ba3 commit 6103b0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/symbolize/gimli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down Expand Up @@ -327,14 +327,14 @@ fn create_mapping(lib: &Library) -> Option<Mapping> {
///
/// 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
Expand Down

0 comments on commit 6103b0a

Please sign in to comment.