diff options
| author | bors <bors@rust-lang.org> | 2013-08-01 22:10:45 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-08-01 22:10:45 -0700 |
| commit | bbcce8d95c582d3f918fe4e978d6a715efd991e9 (patch) | |
| tree | 6c0a714130897160fc6ef8a3d17671aed2bc8b90 /src/libstd/run.rs | |
| parent | ecefeb03ccecdcb306e5cc3c76b04670073a82fa (diff) | |
| parent | 234acad404535868ecd7f5b48c3e120c4ea559c9 (diff) | |
| download | rust-bbcce8d95c582d3f918fe4e978d6a715efd991e9.tar.gz rust-bbcce8d95c582d3f918fe4e978d6a715efd991e9.zip | |
auto merge of #8216 : thestinger/rust/range, r=huonw
Diffstat (limited to 'src/libstd/run.rs')
| -rw-r--r-- | src/libstd/run.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libstd/run.rs b/src/libstd/run.rs index acdc97da58c..8af5a6dfac7 100644 --- a/src/libstd/run.rs +++ b/src/libstd/run.rs @@ -574,9 +574,6 @@ fn zeroed_process_information() -> libc::types::os::arch::extra::PROCESS_INFORMA // FIXME: this is only pub so it can be tested (see issue #4536) #[cfg(windows)] pub fn make_command_line(prog: &str, args: &[~str]) -> ~str { - - use uint; - let mut cmd = ~""; append_arg(&mut cmd, prog); foreach arg in args.iter() { @@ -590,7 +587,7 @@ pub fn make_command_line(prog: &str, args: &[~str]) -> ~str { if quote { cmd.push_char('"'); } - for uint::range(0, arg.len()) |i| { + foreach i in range(0u, arg.len()) { append_char_at(cmd, arg, i); } if quote { |
