Skip to content

Commit 02f8269

Browse files
committed
some more cosmetic changes
1 parent 0a7bcea commit 02f8269

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/bootstrap/src/core/config/config.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -868,14 +868,14 @@ impl Config {
868868
build_jobs = flags_jobs.or(build_jobs);
869869
build_build = flags_build.or(build_build);
870870

871-
let build_dir = flags_build_dir.or(build_build_dir.map(PathBuf::from));
872-
let host = if let Some(TargetSelectionList(hosts)) = flags_host {
871+
let build_dir_ = flags_build_dir.or(build_build_dir.map(PathBuf::from));
872+
let host_ = if let Some(TargetSelectionList(hosts)) = flags_host {
873873
Some(hosts)
874874
} else {
875875
build_host
876876
.map(|file_host| file_host.iter().map(|h| TargetSelection::from_user(h)).collect())
877877
};
878-
let target = if let Some(TargetSelectionList(targets)) = flags_target {
878+
let target_ = if let Some(TargetSelectionList(targets)) = flags_target {
879879
Some(targets)
880880
} else {
881881
build_target.map(|file_target| {
@@ -971,7 +971,7 @@ impl Config {
971971
host_target = TargetSelection::from_user(&build);
972972
}
973973

974-
set(&mut out, build_dir);
974+
set(&mut out, build_dir_);
975975
// NOTE: Bootstrap spawns various commands with different working directories.
976976
// To avoid writing to random places on the file system, `config.out` needs to be an absolute path.
977977
if !out.is_absolute() {
@@ -1051,8 +1051,8 @@ impl Config {
10511051
out = dir;
10521052
}
10531053

1054-
hosts = if let Some(hosts) = host { hosts } else { vec![host_target] };
1055-
targets = if let Some(targets) = target {
1054+
hosts = if let Some(hosts) = host_ { hosts } else { vec![host_target] };
1055+
targets = if let Some(targets) = target_ {
10561056
targets
10571057
} else {
10581058
// If target is *not* configured, then default to the host

0 commit comments

Comments
 (0)