style: applied rustfmt to pcre2 jit statics

This commit is contained in:
can1357
2026-08-03 15:26:46 +02:00
parent 39bc9de52f
commit 6ca4d0a753
+5 -4
View File
@@ -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<bool> = 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<bool> =
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(