diff options
| author | Dan Gohman <dev@sunfishcode.online> | 2021-07-17 18:31:51 -0700 |
|---|---|---|
| committer | Dan Gohman <dev@sunfishcode.online> | 2021-07-17 18:31:51 -0700 |
| commit | c3df0ae97f9c03ce5937b9677c27da891a4a0fe0 (patch) | |
| tree | 065bb26e21b103ed3c6f972a4ebad69ffe2334b9 | |
| parent | 9bb11ba51135b0398b5a8b9feca24149d96fa5e8 (diff) | |
x.py fmt
| -rw-r--r-- | library/std/src/sys/unix/args.rs | 6 |
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); |
