File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -259,18 +259,18 @@ than building it.
259
259
has_target |= STAGE0_MISSING_TARGETS . contains ( & target_str. as_str ( ) ) ;
260
260
261
261
if !has_target {
262
- // This might also be a custom target, so check the target file that could have been specified by the user.
262
+ // This might also be a custom target, so check the target file that could have been specified by the user.
263
263
if target. filepath ( ) . is_some_and ( |p| p. exists ( ) ) {
264
264
has_target = true ;
265
265
} else if let Some ( custom_target_path) = env:: var_os ( "RUST_TARGET_PATH" ) {
266
266
let mut target_filename = OsString :: from ( & target_str) ;
267
267
// Target filename ends with `.json`.
268
268
target_filename. push ( ".json" ) ;
269
-
269
+
270
270
// Recursively traverse through nested directories.
271
271
let walker = walkdir:: WalkDir :: new ( custom_target_path) . into_iter ( ) ;
272
272
for entry in walker. filter_map ( |e| e. ok ( ) ) {
273
- has_target |= entry. file_name ( ) == target_filename;
273
+ has_target |= entry. file_name ( ) == target_filename;
274
274
}
275
275
}
276
276
}
You can’t perform that action at this time.
0 commit comments