From 8a28f3059398eec7b5496bb1088b4d9870e6eb7e Mon Sep 17 00:00:00 2001 From: Philipp Mildenberger Date: Thu, 27 Jul 2023 04:57:19 +0200 Subject: Reformat with nightly rustfmt for better let-else formatting (#7721) --- helix-loader/build.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'helix-loader') diff --git a/helix-loader/build.rs b/helix-loader/build.rs index 63548a0c..74ba2a2b 100644 --- a/helix-loader/build.rs +++ b/helix-loader/build.rs @@ -40,7 +40,9 @@ fn main() { .ok() .filter(|output| output.status.success()) .and_then(|x| String::from_utf8(x.stdout).ok()) - else{ return; }; + else { + return; + }; // If heads starts pointing at something else (different branch) // we need to return let head = Path::new(&git_dir).join("HEAD"); @@ -55,7 +57,9 @@ fn main() { .ok() .filter(|output| output.status.success()) .and_then(|x| String::from_utf8(x.stdout).ok()) - else{ return; }; + else { + return; + }; let head_ref = Path::new(&git_dir).join(head_ref); if head_ref.exists() { println!("cargo:rerun-if-changed={}", head_ref.display()); -- cgit v1.2.3-70-g09d2