From 6ca4d0a7532ee06a6306b2ed3ee8138e026c0450 Mon Sep 17 00:00:00 2001 From: can1357 Date: Mon, 3 Aug 2026 15:26:46 +0200 Subject: [PATCH] style: applied rustfmt to pcre2 jit statics --- crates/pi-uu-grep/src/lib.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/pi-uu-grep/src/lib.rs b/crates/pi-uu-grep/src/lib.rs index 567a58280..3ed7631db 100644 --- a/crates/pi-uu-grep/src/lib.rs +++ b/crates/pi-uu-grep/src/lib.rs @@ -34,10 +34,11 @@ pub use rg::run as run_rg; /// PCRE2 JIT toggle: `OMP_PCRE2_JIT=1` forces JIT on, `0`/`false` forces it /// off. Unset, JIT stays on everywhere except macOS, where PCRE2's SLJIT /// executable allocator can fault while compiling patterns (issue #7399). -pub(crate) static PCRE2_JIT_ENABLED: LazyLock = LazyLock::new(|| match std::env::var("OMP_PCRE2_JIT") { - Ok(v) if !v.is_empty() => v != "0" && !v.eq_ignore_ascii_case("false"), - _ => !cfg!(target_os = "macos"), -}); +pub(crate) static PCRE2_JIT_ENABLED: LazyLock = + LazyLock::new(|| match std::env::var("OMP_PCRE2_JIT") { + Ok(v) if !v.is_empty() => v != "0" && !v.eq_ignore_ascii_case("false"), + _ => !cfg!(target_os = "macos"), + }); #[derive(Parser, Debug)] #[command(