We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bb11ba commit c3df0aeCopy full SHA for c3df0ae
library/std/src/sys/unix/args.rs
@@ -125,11 +125,7 @@ mod imp {
125
// Load ARGC and ARGV without a lock. If the store to either ARGV or
126
// ARGC isn't visible yet, we'll return an empty argument list.
127
let argv = ARGV.load(Ordering::Relaxed);
128
- let argc = if argv.is_null() {
129
- 0
130
- } else {
131
- ARGC.load(Ordering::Relaxed)
132
- };
+ let argc = if argv.is_null() { 0 } else { ARGC.load(Ordering::Relaxed) };
133
(0..argc)
134
.map(|i| {
135
let cstr = CStr::from_ptr(*argv.offset(i) as *const libc::c_char);
0 commit comments