From 002445aa44bbc6f3a05853178e2feb08a1f9c695 Mon Sep 17 00:00:00 2001 From: Ivan Mikushin Date: Wed, 20 Nov 2024 16:41:45 -0800 Subject: [PATCH] cargo fmt --- crates/build/src/command/utils.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/crates/build/src/command/utils.rs b/crates/build/src/command/utils.rs index c5c4754a5..c89ebcff5 100644 --- a/crates/build/src/command/utils.rs +++ b/crates/build/src/command/utils.rs @@ -50,9 +50,18 @@ pub(crate) fn get_program_build_args(args: &BuildArgs) -> Vec { /// Rust flags for compilation of C libraries. pub(crate) fn get_rust_compiler_flags(args: &BuildArgs) -> String { - let rust_flags = - ["-C", "passes=loweratomic", "-C", "link-arg=-Ttext=0x00200800", "-C", "panic=abort", - "-C", "strip=symbols", "-C", "opt-level=z"]; + let rust_flags = [ + "-C", + "passes=loweratomic", + "-C", + "link-arg=-Ttext=0x00200800", + "-C", + "panic=abort", + "-C", + "strip=symbols", + "-C", + "opt-level=z", + ]; let rust_flags: Vec<_> = rust_flags.into_iter().chain(args.rustflags.iter().map(String::as_str)).collect(); rust_flags.join("\x1f")