mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
remove some unnecessary parentheses
This commit is contained in:
parent
9f1219005d
commit
a2e0296ef2
1 changed files with 3 additions and 3 deletions
|
@ -431,9 +431,9 @@ pub fn dry_exec(tmpdir: &str, prefix: &str, rand: usize, suffix: &str) -> UResul
|
||||||
rand::thread_rng().fill(bytes);
|
rand::thread_rng().fill(bytes);
|
||||||
for byte in bytes.iter_mut() {
|
for byte in bytes.iter_mut() {
|
||||||
*byte = match *byte % 62 {
|
*byte = match *byte % 62 {
|
||||||
v @ 0..=9 => (v + b'0'),
|
v @ 0..=9 => v + b'0',
|
||||||
v @ 10..=35 => (v - 10 + b'a'),
|
v @ 10..=35 => v - 10 + b'a',
|
||||||
v @ 36..=61 => (v - 36 + b'A'),
|
v @ 36..=61 => v - 36 + b'A',
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue