1313
1414#![ stable( feature = "env" , since = "1.0.0" ) ]
1515
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;
2323
2424/// Returns the current working directory as a [`PathBuf`].
2525///
@@ -800,7 +800,7 @@ impl fmt::Debug for ArgsOs {
800800/// Constants associated with the current target
801801#[ stable( feature = "env" , since = "1.0.0" ) ]
802802pub mod consts {
803- use sys:: env:: os;
803+ use crate :: sys:: env:: os;
804804
805805 /// A string describing the architecture of the CPU that is currently
806806 /// in use.
@@ -972,7 +972,7 @@ mod arch {
972972mod tests {
973973 use super :: * ;
974974
975- use path:: Path ;
975+ use crate :: path:: Path ;
976976
977977 #[ test]
978978 #[ cfg_attr( target_os = "emscripten" , ignore) ]
@@ -995,7 +995,7 @@ mod tests {
995995 #[ test]
996996 #[ cfg( windows) ]
997997 fn split_paths_windows ( ) {
998- use path:: PathBuf ;
998+ use crate :: path:: PathBuf ;
999999
10001000 fn check_parse ( unparsed : & str , parsed : & [ & str ] ) -> bool {
10011001 split_paths ( unparsed) . collect :: < Vec < _ > > ( ) ==
@@ -1017,7 +1017,7 @@ mod tests {
10171017 #[ test]
10181018 #[ cfg( unix) ]
10191019 fn split_paths_unix ( ) {
1020- use path:: PathBuf ;
1020+ use crate :: path:: PathBuf ;
10211021
10221022 fn check_parse ( unparsed : & str , parsed : & [ & str ] ) -> bool {
10231023 split_paths ( unparsed) . collect :: < Vec < _ > > ( ) ==
@@ -1034,7 +1034,7 @@ mod tests {
10341034 #[ test]
10351035 #[ cfg( unix) ]
10361036 fn join_paths_unix ( ) {
1037- use ffi:: OsStr ;
1037+ use crate :: ffi:: OsStr ;
10381038
10391039 fn test_eq ( input : & [ & str ] , output : & str ) -> bool {
10401040 & * join_paths ( input. iter ( ) . cloned ( ) ) . unwrap ( ) ==
@@ -1052,7 +1052,7 @@ mod tests {
10521052 #[ test]
10531053 #[ cfg( windows) ]
10541054 fn join_paths_windows ( ) {
1055- use ffi:: OsStr ;
1055+ use crate :: ffi:: OsStr ;
10561056
10571057 fn test_eq ( input : & [ & str ] , output : & str ) -> bool {
10581058 & * join_paths ( input. iter ( ) . cloned ( ) ) . unwrap ( ) ==
0 commit comments