From 77c63bc8f3616db06ea52c98d520b9fe0557bef3 Mon Sep 17 00:00:00 2001 From: binarycat Date: Wed, 31 Jul 2024 15:44:09 -0400 Subject: [PATCH] fmt --- src/bootstrap/src/core/sanity.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bootstrap/src/core/sanity.rs b/src/bootstrap/src/core/sanity.rs index 299341bf08fd2..c42d4c56c3816 100644 --- a/src/bootstrap/src/core/sanity.rs +++ b/src/bootstrap/src/core/sanity.rs @@ -259,18 +259,18 @@ than building it. has_target |= STAGE0_MISSING_TARGETS.contains(&target_str.as_str()); if !has_target { - // This might also be a custom target, so check the target file that could have been specified by the user. + // This might also be a custom target, so check the target file that could have been specified by the user. if target.filepath().is_some_and(|p| p.exists()) { has_target = true; } else if let Some(custom_target_path) = env::var_os("RUST_TARGET_PATH") { let mut target_filename = OsString::from(&target_str); // Target filename ends with `.json`. target_filename.push(".json"); - + // Recursively traverse through nested directories. let walker = walkdir::WalkDir::new(custom_target_path).into_iter(); for entry in walker.filter_map(|e| e.ok()) { - has_target |= entry.file_name() == target_filename; + has_target |= entry.file_name() == target_filename; } } }