diff options
author | Philipp Mildenberger | 2023-07-27 02:57:19 +0000 |
---|---|---|
committer | GitHub | 2023-07-27 02:57:19 +0000 |
commit | 8a28f3059398eec7b5496bb1088b4d9870e6eb7e (patch) | |
tree | 77cf35ee489ed5367dc2a1ac8b4a0600530ded37 /helix-loader | |
parent | 262a595e5343c5afd0f2570859b63ebf4c12b0fa (diff) |
Reformat with nightly rustfmt for better let-else formatting (#7721)
Diffstat (limited to 'helix-loader')
-rw-r--r-- | helix-loader/build.rs | 8 |
1 files changed, 6 insertions, 2 deletions
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()); |