From 551c9355a66a601c3a46995f979973ad03d1f6e7 Mon Sep 17 00:00:00 2001 From: Folkert Date: Sat, 29 May 2021 20:57:27 +0200 Subject: [PATCH] run rustfmt --- compiler/builtins/build.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/compiler/builtins/build.rs b/compiler/builtins/build.rs index 57ec6d7a71..c621196cb9 100644 --- a/compiler/builtins/build.rs +++ b/compiler/builtins/build.rs @@ -24,14 +24,14 @@ fn main() { let dest_ir = dest_ir_path.to_str().expect("Invalid dest ir path"); if use_build_script { - println!("Compiling zig object & ir to: {} and {}", src_obj, dest_ir); - run_command_with_no_args(&bitcode_path, "./build.sh"); + println!("Compiling zig object & ir to: {} and {}", src_obj, dest_ir); + run_command_with_no_args(&bitcode_path, "./build.sh"); } else { - println!("Compiling zig object to: {}", src_obj); - run_command(&bitcode_path, "zig", &["build", "object", "-Drelease=true"]); + println!("Compiling zig object to: {}", src_obj); + run_command(&bitcode_path, "zig", &["build", "object", "-Drelease=true"]); - println!("Compiling ir to: {}", dest_ir); - run_command(&bitcode_path, "zig", &["build", "ir", "-Drelease=true"]); + println!("Compiling ir to: {}", dest_ir); + run_command(&bitcode_path, "zig", &["build", "ir", "-Drelease=true"]); } let dest_obj_path = Path::new(&out_dir).join("builtins.o"); @@ -86,8 +86,7 @@ where } } -fn run_command_with_no_args>(path: P, command_str: &str) -{ +fn run_command_with_no_args>(path: P, command_str: &str) { let output_result = Command::new(OsStr::new(&command_str)) .current_dir(path) .output();