File tree 2 files changed +3
-5
lines changed 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- #![ feature( fs_try_exists) ]
2
-
3
1
mod tests_fs;
4
2
mod tests_pthread;
5
3
mod tests_tcp;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ mod tests {
6
6
7
7
impl Drop for FsScope {
8
8
fn drop ( & mut self ) {
9
- if fs:: try_exists ( "ux0:/data/.rust_test" ) . unwrap_or ( false ) {
9
+ if fs:: exists ( "ux0:/data/.rust_test" ) . unwrap_or ( false ) {
10
10
fs:: remove_dir_all ( "ux0:/data/.rust_test" ) . expect ( "unable to cleanup" ) ;
11
11
}
12
12
}
@@ -54,7 +54,7 @@ mod tests {
54
54
assert ! ( & data == "contents" , "invalid file contents" ) ;
55
55
56
56
assert ! (
57
- fs:: try_exists ( "ux0:/data/.rust_test/file" ) . unwrap( ) ,
57
+ fs:: exists ( "ux0:/data/.rust_test/file" ) . unwrap( ) ,
58
58
"file does not exist" ,
59
59
) ;
60
60
@@ -69,7 +69,7 @@ mod tests {
69
69
70
70
fs:: remove_file ( "ux0:/data/.rust_test/file" ) . expect ( "unable to delete file" ) ;
71
71
assert ! (
72
- !fs:: try_exists ( "ux0:/data/.rust_test/file" ) . unwrap( ) ,
72
+ !fs:: exists ( "ux0:/data/.rust_test/file" ) . unwrap( ) ,
73
73
"file exists, but should not" ,
74
74
) ;
75
75
You can’t perform that action at this time.
0 commit comments