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/old_path/posix.rs | 2 +- src/libstd/old_path/windows.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstd/old_path') diff --git a/src/libstd/old_path/posix.rs b/src/libstd/old_path/posix.rs index 440d17cfd50..0a184a01a1d 100644 --- a/src/libstd/old_path/posix.rs +++ b/src/libstd/old_path/posix.rs @@ -409,7 +409,7 @@ fn normalize_helper<'a>(v: &'a [u8], is_abs: bool) -> Option> { return None; } let mut comps: Vec<&'a [u8]> = vec![]; - let mut n_up = 0u; + let mut n_up = 0; let mut changed = false; for comp in v.split(is_sep_byte) { if comp.is_empty() { changed = true } diff --git a/src/libstd/old_path/windows.rs b/src/libstd/old_path/windows.rs index 07c5e10992b..02a21321c4c 100644 --- a/src/libstd/old_path/windows.rs +++ b/src/libstd/old_path/windows.rs @@ -1063,7 +1063,7 @@ fn normalize_helper<'a>(s: &'a str, prefix: Option) -> (bool, Option }); } let mut comps: Vec<&'a str> = vec![]; - let mut n_up = 0u; + let mut n_up = 0; let mut changed = false; for comp in s_.split(f) { if comp.is_empty() { changed = true } -- cgit 1.4.1-3-g733a5