mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
Merge pull request #809 from jbcrail/fix-type-mismatch
Fix type mismatch error.
This commit is contained in:
commit
7cb0db8928
2 changed files with 4 additions and 4 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -131,7 +131,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "bit-set"
|
||||
version = "0.2.0"
|
||||
version = "0.3.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"bit-vec 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -901,7 +901,7 @@ dependencies = [
|
|||
name = "tr"
|
||||
version = "0.0.1"
|
||||
dependencies = [
|
||||
"bit-set 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"bit-set 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"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",
|
||||
|
|
|
@ -43,9 +43,9 @@ fn delete(set: ExpandSet, complement: bool) {
|
|||
|
||||
let is_allowed = |c : char| {
|
||||
if complement {
|
||||
bset.contains(&(c as usize))
|
||||
bset.contains(c as usize)
|
||||
} else {
|
||||
!bset.contains(&(c as usize))
|
||||
!bset.contains(c as usize)
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue