mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-15 20:05:13 +02:00
tests, docs: simplify OnceLock usage in Linux sandbox tests, update Java patterns in rules documentation
This commit is contained in:
parent
eb4332edb5
commit
7468d2214b
2 changed files with 3 additions and 4 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue