diff options
Diffstat (limited to 'tvix')
-rw-r--r-- | tvix/nix-compat/src/store_path/mod.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tvix/nix-compat/src/store_path/mod.rs b/tvix/nix-compat/src/store_path/mod.rs index 8a1b3a595a09..c92db8e03733 100644 --- a/tvix/nix-compat/src/store_path/mod.rs +++ b/tvix/nix-compat/src/store_path/mod.rs @@ -222,11 +222,7 @@ static NAME_CHARS: [bool; 256] = { let mut c = 0; loop { - tbl[c as usize] = match c { - b'a'..=b'z' | b'A'..=b'Z' | b'0'..=b'9' => true, - b'+' | b'-' | b'_' | b'?' | b'=' | b'.' => true, - _ => false, - }; + tbl[c as usize] = matches!(c, b'a'..=b'z' | b'A'..=b'Z' | b'0'..=b'9' | b'+' | b'-' | b'_' | b'?' | b'=' | b'.'); if c == u8::MAX { break; |