diff options
| author | 王宇逸 <Strawberry_Str@hotmail.com> | 2025-02-26 00:05:55 +0800 |
|---|---|---|
| committer | 王宇逸 <Strawberry_Str@hotmail.com> | 2025-03-10 21:23:31 +0800 |
| commit | d24c6a29f5dca8c52ecf1ff88e4786e537078fb6 (patch) | |
| tree | adc17499130cbfd79713b491ee9fa78c77dba1ef /library/std/src/sys/random | |
| parent | abcbd881754651af73f7454cbcbdab953d2e4e30 (diff) | |
Fix code style
Diffstat (limited to 'library/std/src/sys/random')
| -rw-r--r-- | library/std/src/sys/random/linux.rs | 8 |
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 } |
