Move OsStringExt and OsStrExt to std::os
This commit is contained in:
@@ -55,8 +55,8 @@ impl DoubleEndedIterator for Args {
|
||||
mod imp {
|
||||
use super::Args;
|
||||
use crate::ffi::{CStr, OsString};
|
||||
use crate::os::unix::ffi::OsStringExt;
|
||||
use crate::ptr;
|
||||
use crate::sys_common::os_str_bytes::*;
|
||||
|
||||
use crate::sys_common::mutex::StaticMutex;
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ use crate::fmt;
|
||||
use crate::hash::{Hash, Hasher};
|
||||
use crate::io::{self, Error, ErrorKind};
|
||||
use crate::io::{IoSlice, IoSliceMut, SeekFrom};
|
||||
use crate::os::unix::ffi::OsStrExt;
|
||||
use crate::path::{Path, PathBuf};
|
||||
use crate::sys::cvt;
|
||||
use crate::sys::hermit::abi;
|
||||
@@ -10,7 +11,6 @@ use crate::sys::hermit::abi::{O_APPEND, O_CREAT, O_EXCL, O_RDONLY, O_RDWR, O_TRU
|
||||
use crate::sys::hermit::fd::FileDesc;
|
||||
use crate::sys::time::SystemTime;
|
||||
use crate::sys::unsupported;
|
||||
use crate::sys_common::os_str_bytes::OsStrExt;
|
||||
|
||||
pub use crate::sys_common::fs::{copy, try_exists};
|
||||
//pub use crate::sys_common::fs::remove_dir_all;
|
||||
|
||||
@@ -4,13 +4,13 @@ use crate::ffi::{CStr, OsStr, OsString};
|
||||
use crate::fmt;
|
||||
use crate::io;
|
||||
use crate::marker::PhantomData;
|
||||
use crate::os::unix::ffi::OsStringExt;
|
||||
use crate::path::{self, PathBuf};
|
||||
use crate::str;
|
||||
use crate::sync::Mutex;
|
||||
use crate::sys::hermit::abi;
|
||||
use crate::sys::memchr;
|
||||
use crate::sys::unsupported;
|
||||
use crate::sys_common::os_str_bytes::*;
|
||||
use crate::vec;
|
||||
|
||||
pub fn errno() -> i32 {
|
||||
|
||||
Reference in New Issue
Block a user