diff options
| author | Jorge Aparicio <japaricious@gmail.com> | 2015-01-31 20:03:04 -0500 |
|---|---|---|
| committer | Jorge Aparicio <japaricious@gmail.com> | 2015-02-02 13:40:18 -0500 |
| commit | fd702702ee90ddb47d207f8886818c7f91600713 (patch) | |
| tree | 7bed4a4d739e1372d9e101b350297e7946f17819 /src/libstd/sys/windows | |
| parent | d5f61b4332f3edd83c43f3f0d52d0381d7a6c37a (diff) | |
| download | rust-fd702702ee90ddb47d207f8886818c7f91600713.tar.gz rust-fd702702ee90ddb47d207f8886818c7f91600713.zip | |
`for x in xs.into_iter()` -> `for x in xs`
Also `for x in option.into_iter()` -> `if let Some(x) = option`
Diffstat (limited to 'src/libstd/sys/windows')
| -rw-r--r-- | src/libstd/sys/windows/process.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/process.rs b/src/libstd/sys/windows/process.rs index a0a0c08ed09..58797111a20 100644 --- a/src/libstd/sys/windows/process.rs +++ b/src/libstd/sys/windows/process.rs @@ -147,7 +147,7 @@ impl Process { // Split the value and test each path to see if the // program exists. - for path in os::split_paths(v.container_as_bytes()).into_iter() { + for path in os::split_paths(v.container_as_bytes()) { let path = path.join(cfg.program().as_bytes()) .with_extension(os::consts::EXE_EXTENSION); if path.exists() { |
