diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2014-12-09 12:09:31 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2014-12-13 20:04:40 -0500 |
| commit | fe48a65aaa8e8c218b42ccd67a91c903935ac9e5 (patch) | |
| tree | 56c7b27d943983a32f729aabd8b1a133ac4d7c31 /src/libstd | |
| parent | 4deb27e67aa7280d6e6f9b70eb9447bca5e3c48f (diff) | |
| download | rust-fe48a65aaa8e8c218b42ccd67a91c903935ac9e5.tar.gz rust-fe48a65aaa8e8c218b42ccd67a91c903935ac9e5.zip | |
libstd: use tuple indexing
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/sys/unix/process.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/sys/unix/process.rs b/src/libstd/sys/unix/process.rs index 7dde19a6476..dfbba0f335c 100644 --- a/src/libstd/sys/unix/process.rs +++ b/src/libstd/sys/unix/process.rs @@ -379,8 +379,8 @@ impl Process { // wait indefinitely for a message to arrive. // // FIXME: sure would be nice to not have to scan the entire array - let min = active.iter().map(|a| *a.ref2()).enumerate().min_by(|p| { - p.val1() + let min = active.iter().map(|a| a.2).enumerate().min_by(|p| { + p.1 }); let (p, idx) = match min { Some((idx, deadline)) => { @@ -564,9 +564,9 @@ fn with_envp<K, V, T>(env: Option<&collections::HashMap<K, V>>, for pair in env.iter() { let mut kv = Vec::new(); - kv.push_all(pair.ref0().container_as_bytes()); + kv.push_all(pair.0.container_as_bytes()); kv.push('=' as u8); - kv.push_all(pair.ref1().container_as_bytes()); + kv.push_all(pair.1.container_as_bytes()); kv.push(0); // terminating null tmps.push(kv); } |
