Skip to content

Commit 35ecf18

Browse files
committed
Format Rust build script
1 parent 3cff3a1 commit 35ecf18

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

bindings/rust/build.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -277,11 +277,10 @@ Please vendor the sources into bindings/rust/native/, or set CCAP_SOURCE_DIR to
277277
//
278278
// We detect this by scanning the archive bytes for common ASan symbols.
279279
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
280-
if env::var("CCAP_RUST_NO_ASAN_LINK").is_err() && (target_os == "macos" || target_os == "linux") {
281-
let archive_path = ccap_root
282-
.join("build")
283-
.join(build_type)
284-
.join("libccap.a");
280+
if env::var("CCAP_RUST_NO_ASAN_LINK").is_err()
281+
&& (target_os == "macos" || target_os == "linux")
282+
{
283+
let archive_path = ccap_root.join("build").join(build_type).join("libccap.a");
285284

286285
let asan_instrumented = file_contains_bytes(&archive_path, b"___asan_init")
287286
|| file_contains_bytes(&archive_path, b"__asan_init");

0 commit comments

Comments
 (0)