File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ mod tests {
9191 ) ;
9292 std:: fs:: create_dir_all ( std:: path:: Path :: new ( & hdt_file_path) . parent ( ) . unwrap ( ) ) ?;
9393
94- if let Ok ( _ ) = build_hdt ( vec ! [ f. to_string( ) ] , & hdt_file_path) {
94+ if build_hdt ( vec ! [ f. to_string( ) ] , & hdt_file_path) . is_ok ( ) {
9595 assert ! ( std:: path:: Path :: new( & hdt_file_path) . exists( ) )
9696 }
9797 }
@@ -132,7 +132,7 @@ mod tests {
132132 ) ;
133133 std:: fs:: create_dir_all ( std:: path:: Path :: new ( & hdt_file_path) . parent ( ) . unwrap ( ) ) ?;
134134
135- if let Ok ( _ ) = build_hdt ( vec ! [ f. to_string( ) ] , & hdt_file_path) {
135+ if build_hdt ( vec ! [ f. to_string( ) ] , & hdt_file_path) . is_ok ( ) {
136136 assert ! ( std:: path:: Path :: new( & hdt_file_path) . exists( ) )
137137 }
138138 }
@@ -173,7 +173,7 @@ mod tests {
173173 ) ;
174174 std:: fs:: create_dir_all ( std:: path:: Path :: new ( & hdt_file_path) . parent ( ) . unwrap ( ) ) ?;
175175
176- if let Ok ( _ ) = build_hdt ( vec ! [ f. to_string( ) ] , & hdt_file_path) {
176+ if build_hdt ( vec ! [ f. to_string( ) ] , & hdt_file_path) . is_ok ( ) {
177177 assert ! ( std:: path:: Path :: new( & hdt_file_path) . exists( ) )
178178 }
179179 }
You can’t perform that action at this time.
0 commit comments