]> Repositorios git - scryer-prolog.git/commitdiff
remove redundant closure
authorDmitry Shlagoff <[email protected]>
Tue, 12 May 2026 14:12:33 +0000 (16:12 +0200)
committerDmitry Shlagoff <[email protected]>
Tue, 12 May 2026 14:12:33 +0000 (16:12 +0200)
src/machine/system_calls.rs

index aac650a1427ea273c9ee5b9a1b51e2f845544b97..d80a9565a88a2400885f69c510e0d2a12bc9609b 100644 (file)
@@ -9512,7 +9512,7 @@ impl Machine {
 fn rng() -> &'static dyn SecureRandom {
     use std::ops::Deref;
 
-    static RANDOM: LazyLock<SystemRandom> = LazyLock::new(|| SystemRandom::new());
+    static RANDOM: LazyLock<SystemRandom> = LazyLock::new(SystemRandom::new);
 
     RANDOM.deref()
 }