Skip to content

Commit

Permalink
Rustfmt a let-else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Aug 5, 2023
1 parent bfb0d19 commit 988eebe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cargo/util/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ impl HttpNotSuccessful {
.headers
.iter()
.filter(|header| {
let Some((name, _)) = header.split_once(":") else { return false };
let Some((name, _)) = header.split_once(":") else {
return false;
};
DEBUG_HEADERS.contains(&name.to_ascii_lowercase().trim())
})
.collect();
Expand Down

0 comments on commit 988eebe

Please sign in to comment.