From 2b5720a15fd7e8ae3883dcaee556b000e962b052 Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Tue, 17 Feb 2015 09:47:49 -0500 Subject: Remove `i`, `is`, `u`, or `us` suffixes that are not necessary. --- src/libstd/sys/windows/c.rs | 2 +- src/libstd/sys/windows/process.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/sys/windows') diff --git a/src/libstd/sys/windows/c.rs b/src/libstd/sys/windows/c.rs index 3a1b797eeb4..f861255a00a 100644 --- a/src/libstd/sys/windows/c.rs +++ b/src/libstd/sys/windows/c.rs @@ -105,7 +105,7 @@ pub struct WSAPROTOCOL_INFO { pub iSecurityScheme: libc::c_int, pub dwMessageSize: libc::DWORD, pub dwProviderReserved: libc::DWORD, - pub szProtocol: [u16; (WSAPROTOCOL_LEN as usize) + 1us], + pub szProtocol: [u16; (WSAPROTOCOL_LEN as usize) + 1], } pub type LPWSAPROTOCOL_INFO = *mut WSAPROTOCOL_INFO; diff --git a/src/libstd/sys/windows/process.rs b/src/libstd/sys/windows/process.rs index eab60047aa2..96ffc4daddd 100644 --- a/src/libstd/sys/windows/process.rs +++ b/src/libstd/sys/windows/process.rs @@ -388,7 +388,7 @@ fn make_command_line(prog: &CString, args: &[CString]) -> String { cmd.push('"'); } let argvec: Vec = arg.chars().collect(); - for i in 0u..argvec.len() { + for i in 0..argvec.len() { append_char_at(cmd, &argvec, i); } if quote { -- cgit 1.4.1-3-g733a5