Skip to content

Commit

Permalink
x.py fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Jul 18, 2021
1 parent 9bb11ba commit c3df0ae
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions library/std/src/sys/unix/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c3df0ae

Please sign in to comment.