13
13
14
14
#![ stable( feature = "env" , since = "1.0.0" ) ]
15
15
16
- use error:: Error ;
17
- use ffi:: { OsStr , OsString } ;
18
- use fmt;
19
- use io;
20
- use path:: { Path , PathBuf } ;
21
- use sys;
22
- use sys:: os as os_imp;
16
+ use crate :: error:: Error ;
17
+ use crate :: ffi:: { OsStr , OsString } ;
18
+ use crate :: fmt;
19
+ use crate :: io;
20
+ use crate :: path:: { Path , PathBuf } ;
21
+ use crate :: sys;
22
+ use crate :: sys:: os as os_imp;
23
23
24
24
/// Returns the current working directory as a [`PathBuf`].
25
25
///
@@ -800,7 +800,7 @@ impl fmt::Debug for ArgsOs {
800
800
/// Constants associated with the current target
801
801
#[ stable( feature = "env" , since = "1.0.0" ) ]
802
802
pub mod consts {
803
- use sys:: env:: os;
803
+ use crate :: sys:: env:: os;
804
804
805
805
/// A string describing the architecture of the CPU that is currently
806
806
/// in use.
@@ -972,7 +972,7 @@ mod arch {
972
972
mod tests {
973
973
use super :: * ;
974
974
975
- use path:: Path ;
975
+ use crate :: path:: Path ;
976
976
977
977
#[ test]
978
978
#[ cfg_attr( target_os = "emscripten" , ignore) ]
@@ -995,7 +995,7 @@ mod tests {
995
995
#[ test]
996
996
#[ cfg( windows) ]
997
997
fn split_paths_windows ( ) {
998
- use path:: PathBuf ;
998
+ use crate :: path:: PathBuf ;
999
999
1000
1000
fn check_parse ( unparsed : & str , parsed : & [ & str ] ) -> bool {
1001
1001
split_paths ( unparsed) . collect :: < Vec < _ > > ( ) ==
@@ -1017,7 +1017,7 @@ mod tests {
1017
1017
#[ test]
1018
1018
#[ cfg( unix) ]
1019
1019
fn split_paths_unix ( ) {
1020
- use path:: PathBuf ;
1020
+ use crate :: path:: PathBuf ;
1021
1021
1022
1022
fn check_parse ( unparsed : & str , parsed : & [ & str ] ) -> bool {
1023
1023
split_paths ( unparsed) . collect :: < Vec < _ > > ( ) ==
@@ -1034,7 +1034,7 @@ mod tests {
1034
1034
#[ test]
1035
1035
#[ cfg( unix) ]
1036
1036
fn join_paths_unix ( ) {
1037
- use ffi:: OsStr ;
1037
+ use crate :: ffi:: OsStr ;
1038
1038
1039
1039
fn test_eq ( input : & [ & str ] , output : & str ) -> bool {
1040
1040
& * join_paths ( input. iter ( ) . cloned ( ) ) . unwrap ( ) ==
@@ -1052,7 +1052,7 @@ mod tests {
1052
1052
#[ test]
1053
1053
#[ cfg( windows) ]
1054
1054
fn join_paths_windows ( ) {
1055
- use ffi:: OsStr ;
1055
+ use crate :: ffi:: OsStr ;
1056
1056
1057
1057
fn test_eq ( input : & [ & str ] , output : & str ) -> bool {
1058
1058
& * join_paths ( input. iter ( ) . cloned ( ) ) . unwrap ( ) ==
0 commit comments