diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-02-18 14:35:01 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-02-18 14:35:01 -0800 |
| commit | 5250a82f7917d6f9ec590e7e762bfd036e21ef74 (patch) | |
| tree | 38ce94117b42eb159b630d0a97748b5f3056fbe5 /src/libstd/old_path | |
| parent | 5a32b4a34fc6fbd78e293b16f7ba7d06caca7a48 (diff) | |
| parent | 811c48fe22ffbe4ca45c32807c846d9a7c02a8f3 (diff) | |
| download | rust-5250a82f7917d6f9ec590e7e762bfd036e21ef74.tar.gz rust-5250a82f7917d6f9ec590e7e762bfd036e21ef74.zip | |
rollup merge of #22497: nikomatsakis/suffixes
Conflicts: src/librustc_trans/trans/tvec.rs
Diffstat (limited to 'src/libstd/old_path')
| -rw-r--r-- | src/libstd/old_path/posix.rs | 2 | ||||
| -rw-r--r-- | src/libstd/old_path/windows.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/old_path/posix.rs b/src/libstd/old_path/posix.rs index b0fec102103..15eee9e4a0c 100644 --- a/src/libstd/old_path/posix.rs +++ b/src/libstd/old_path/posix.rs @@ -418,7 +418,7 @@ fn normalize_helper<'a>(v: &'a [u8], is_abs: bool) -> Option<Vec<&'a [u8]>> { 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 4754efbd1fe..37687d9b779 100644 --- a/src/libstd/old_path/windows.rs +++ b/src/libstd/old_path/windows.rs @@ -1079,7 +1079,7 @@ fn normalize_helper<'a>(s: &'a str, prefix: Option<PathPrefix>) -> (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 } |
