From cd89a6e5c7ffa3d2040d2a5d95135797e5d75dcf Mon Sep 17 00:00:00 2001 From: Joseph Crail Date: Sat, 14 May 2016 22:56:24 -0400 Subject: [PATCH] tr: update vec_map to 0.6.0 Fixes #865 --- Cargo.lock | 4 ++-- src/tr/Cargo.toml | 2 +- src/tr/tr.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 76fd390ec..873b1adf7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -935,7 +935,7 @@ dependencies = [ "getopts 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", "uucore 0.0.1", - "vec_map 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "vec_map 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1045,7 +1045,7 @@ dependencies = [ [[package]] name = "vec_map" -version = "0.4.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] diff --git a/src/tr/Cargo.toml b/src/tr/Cargo.toml index 42b4a087a..81291ea18 100644 --- a/src/tr/Cargo.toml +++ b/src/tr/Cargo.toml @@ -11,7 +11,7 @@ path = "tr.rs" getopts = "*" libc = "*" bit-set = "*" -vec_map = "*" +vec_map = "0.6.0" uucore = { path="../uucore" } [[bin]] diff --git a/src/tr/tr.rs b/src/tr/tr.rs index 51087d8db..fc6fae3bb 100644 --- a/src/tr/tr.rs +++ b/src/tr/tr.rs @@ -83,7 +83,7 @@ fn tr<'a>(set1: ExpandSet<'a>, mut set2: ExpandSet<'a>) { let mut chars = buf.chars(); while let Some(char) = chars.next() { - let trc = match map.get(&(char as usize)) { + let trc = match map.get(char as usize) { Some(t) => *t, None => char, };