about summary refs log tree commit diff
path: root/library/std/src/sys/random
diff options
context:
space:
mode:
author王宇逸 <Strawberry_Str@hotmail.com>2025-02-26 00:05:55 +0800
committer王宇逸 <Strawberry_Str@hotmail.com>2025-03-10 21:23:31 +0800
commitd24c6a29f5dca8c52ecf1ff88e4786e537078fb6 (patch)
treeadc17499130cbfd79713b491ee9fa78c77dba1ef /library/std/src/sys/random
parentabcbd881754651af73f7454cbcbdab953d2e4e30 (diff)
Fix code style
Diffstat (limited to 'library/std/src/sys/random')
-rw-r--r--library/std/src/sys/random/linux.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/library/std/src/sys/random/linux.rs b/library/std/src/sys/random/linux.rs
index 266c71abf3d..fb4274281d6 100644
--- a/library/std/src/sys/random/linux.rs
+++ b/library/std/src/sys/random/linux.rs
@@ -95,9 +95,13 @@ fn getrandom(mut bytes: &mut [u8], insecure: bool) {
             let flags = if insecure {
                 if GRND_INSECURE_AVAILABLE.load(Relaxed) {
                     #[cfg(target_os = "cygwin")]
-                    { libc::GRND_NONBLOCK }
+                    {
+                        libc::GRND_NONBLOCK
+                    }
                     #[cfg(not(target_os = "cygwin"))]
-                    { libc::GRND_INSECURE }
+                    {
+                        libc::GRND_INSECURE
+                    }
                 } else {
                     libc::GRND_NONBLOCK
                 }