Skip to content

Commit 7bd8b96

Browse files
committed
fmt code
1 parent 4bd13aa commit 7bd8b96

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2099,23 +2099,28 @@ impl Config {
20992099
Some(commit.to_string())
21002100
}
21012101

2102-
fn parse_download_ci_llvm(&self, download_ci_llvm: Option<StringOrBool>, asserts: bool) -> bool {
2102+
fn parse_download_ci_llvm(
2103+
&self,
2104+
download_ci_llvm: Option<StringOrBool>,
2105+
asserts: bool,
2106+
) -> bool {
21032107
match download_ci_llvm {
2104-
None => {
2105-
self.channel == "dev" && llvm::is_ci_llvm_available(&self, asserts)
2106-
},
2108+
None => self.channel == "dev" && llvm::is_ci_llvm_available(&self, asserts),
21072109
Some(StringOrBool::Bool(b)) => b,
21082110
Some(StringOrBool::String(s)) if s == "if-available" => {
21092111
llvm::is_ci_llvm_available(&self, asserts)
2110-
},
2112+
}
21112113
Some(StringOrBool::String(s)) if s == "if-unchanged" => {
2112-
if self.last_modified_commit(&["src/llvm-project"], "download-ci-llvm", true).is_none() {
2114+
if self
2115+
.last_modified_commit(&["src/llvm-project"], "download-ci-llvm", true)
2116+
.is_none()
2117+
{
21132118
// there are some untracked changes in the the given paths.
21142119
false
21152120
} else {
21162121
llvm::is_ci_llvm_available(&self, asserts)
21172122
}
2118-
},
2123+
}
21192124
Some(StringOrBool::String(other)) => {
21202125
panic!("unrecognized option for download-ci-llvm: {:?}", other)
21212126
}

0 commit comments

Comments
 (0)