about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/std/src/sys/unix/args.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/library/std/src/sys/unix/args.rs b/library/std/src/sys/unix/args.rs
index a6480199e70..ad93fa610c4 100644
--- a/library/std/src/sys/unix/args.rs
+++ b/library/std/src/sys/unix/args.rs
@@ -125,11 +125,7 @@ mod imp {
             // Load ARGC and ARGV without a lock. If the store to either ARGV or
             // ARGC isn't visible yet, we'll return an empty argument list.
             let argv = ARGV.load(Ordering::Relaxed);
-            let argc = if argv.is_null() {
-                0
-            } else {
-                ARGC.load(Ordering::Relaxed)
-            };
+            let argc = if argv.is_null() { 0 } else { ARGC.load(Ordering::Relaxed) };
             (0..argc)
                 .map(|i| {
                     let cstr = CStr::from_ptr(*argv.offset(i) as *const libc::c_char);