mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
parent
ca78706246
commit
cd89a6e5c7
3 changed files with 4 additions and 4 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -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]]
|
||||
|
|
|
@ -11,7 +11,7 @@ path = "tr.rs"
|
|||
getopts = "*"
|
||||
libc = "*"
|
||||
bit-set = "*"
|
||||
vec_map = "*"
|
||||
vec_map = "0.6.0"
|
||||
uucore = { path="../uucore" }
|
||||
|
||||
[[bin]]
|
||||
|
|
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue