From: Dmitry Shlagoff Date: Tue, 12 May 2026 14:12:33 +0000 (+0200) Subject: remove redundant closure X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=2bbb6487ecb7358483b7cd5aa01eaf064ee769bf;p=scryer-prolog.git remove redundant closure --- diff --git a/src/machine/system_calls.rs b/src/machine/system_calls.rs index aac650a1..d80a9565 100644 --- a/src/machine/system_calls.rs +++ b/src/machine/system_calls.rs @@ -9512,7 +9512,7 @@ impl Machine { fn rng() -> &'static dyn SecureRandom { use std::ops::Deref; - static RANDOM: LazyLock = LazyLock::new(|| SystemRandom::new()); + static RANDOM: LazyLock = LazyLock::new(SystemRandom::new); RANDOM.deref() }