Skip to content

Commit f761921

Browse files
committed
Auto merge of #12451 - ehuss:fmt-let-else, r=weihanglo
Rustfmt a let-else statement Beta and nightly rustfmt require that this is formatted correctly.
2 parents f9c45a6 + 988eebe commit f761921

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cargo/util/errors.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ impl HttpNotSuccessful {
8787
.headers
8888
.iter()
8989
.filter(|header| {
90-
let Some((name, _)) = header.split_once(":") else { return false };
90+
let Some((name, _)) = header.split_once(":") else {
91+
return false;
92+
};
9193
DEBUG_HEADERS.contains(&name.to_ascii_lowercase().trim())
9294
})
9395
.collect();

0 commit comments

Comments
 (0)