Skip to content

Commit fe48a65

Browse files
author
Jorge Aparicio
committed
libstd: use tuple indexing
1 parent 4deb27e commit fe48a65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/sys/unix/process.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ impl Process {
379379
// wait indefinitely for a message to arrive.
380380
//
381381
// FIXME: sure would be nice to not have to scan the entire array
382-
let min = active.iter().map(|a| *a.ref2()).enumerate().min_by(|p| {
383-
p.val1()
382+
let min = active.iter().map(|a| a.2).enumerate().min_by(|p| {
383+
p.1
384384
});
385385
let (p, idx) = match min {
386386
Some((idx, deadline)) => {
@@ -564,9 +564,9 @@ fn with_envp<K, V, T>(env: Option<&collections::HashMap<K, V>>,
564564

565565
for pair in env.iter() {
566566
let mut kv = Vec::new();
567-
kv.push_all(pair.ref0().container_as_bytes());
567+
kv.push_all(pair.0.container_as_bytes());
568568
kv.push('=' as u8);
569-
kv.push_all(pair.ref1().container_as_bytes());
569+
kv.push_all(pair.1.container_as_bytes());
570570
kv.push(0); // terminating null
571571
tmps.push(kv);
572572
}

0 commit comments

Comments
 (0)