tests, docs: simplify OnceLock usage in Linux sandbox tests, update Java patterns in rules documentation

This commit is contained in:
elipeter 2026-06-03 11:36:52 -05:00
parent eb4332edb5
commit 7468d2214b
2 changed files with 3 additions and 4 deletions

View file

@ -43,7 +43,7 @@ mod hardening_tests {
static PROBE_BINARY: OnceLock<Option<PathBuf>> = OnceLock::new();
fn probe_path() -> Option<&'static Path> {
PROBE_BINARY.get_or_init(|| build_probe_once()).as_deref()
PROBE_BINARY.get_or_init(build_probe_once).as_deref()
}
fn build_probe_once() -> Option<PathBuf> {