From 988eebe2220a0f3dec9b780cd671fcf2e3526f0b Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Sat, 5 Aug 2023 12:13:08 -0700 Subject: [PATCH] Rustfmt a let-else statement --- src/cargo/util/errors.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cargo/util/errors.rs b/src/cargo/util/errors.rs index 91258c53c08..9589e1ae33e 100644 --- a/src/cargo/util/errors.rs +++ b/src/cargo/util/errors.rs @@ -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();