Skip to content

Commit 39a19f9

Browse files
committed
1 parent 931e87b commit 39a19f9

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

crates/utils/src/md5/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn to_hex_string(hash: [u32; 4]) -> String {
2929
String::from_utf8(to_hex(hash).to_vec()).unwrap()
3030
}
3131

32-
pub const STRINGS: [[u8; 330]; 8] = [
32+
pub static STRINGS: [[u8; 330]; 8] = [
3333
*b"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefABCDEF\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50\x51\x52\x53\x54\x55\x56\x57\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff\x00",
3434
*b"\xc4\xf1\xe9\xe8\x07\x1b\xec\x36\x39\x85\x9f\xb6\x34\x1e\xca\x9b\x9f\xd5\x0a\x78\x75\x13\x0b\x2c\x87\x76\x7d\xd6\x17\xf2\x47\xdc\xd4\x9b\x1d\x73\x2e\x49\xe3\x59\x17\xc0\xe2\x8a\x37\xb1\x91\x46\x15\xbf\xfa\xa1\x23\x02\x7f\x05\x69\x3b\x31\x0f\xc6\x05\x87\x60\x88\x36\x86\x5f\x24\x2b\xf5\x8e\xcd\x13\x8b\x8c\x99\x08\xb7\x54\xbf\x58\x9b\x96\xe0\xc8\x65\x3d\x31\xe8\x83\x45\x32\xea\xc1\x70\x3a\x59\xfd\xfd\x26\x7e\x7b\xb4\x76\x51\x82\xe9\xe2\xff\xfc\xc5\xc3\xdb\x77\x75\x21\xf7\x9f\x32\x80\x98\x97\x6b\xd4\x9f\xf8\x9d\x8c\x98\xb9\xf7\x42\xec\x49\x99\xe9\xfd\x49\xee\x9a\x26\xd9\xa7\xd1\x43\x1f\xff\x59\x1b\x4c\xb3\xe2\x5f\x02\x6a\x29\x72\x83\xa3\x56\x22\xdc\x30\xa5\xc9\xbc\xae\x60\x5e\x09\x4d\xf0\x8f\x99\xeb\x3b\x79\x0a\xd2\xa2\x31\x5a\x31\xa2\xb8\x60\xa5\xf6\x59\xac\x94\x5c\x18\xda\xdb\x42\xac\xf7\xb7\x4b\x16\xb2\x03\x28\x26\xd8\x05\x24\x5d\x5e\x52\x1f\x64\x34\x3d\xb4\x32\x8f\x77\xfc\xa0\x74\xa5\x13\xd0\x26\x6d\x89\xaa\x5e\xac\xf6\x9f\x29\xb6\x37\x0b\x14\xf5\x4b\x1d\xda\x65\x4d\xe0\xf3\x04\x8f\x2a\xd8\xd0\x4e\xac\xe6\x84\xfa\xfe\x16\x28\x5d\xca\xb8\x3b\xd8\xaf\x05\xa6\x65\x46\x94\x42\xd7\xf3\x47\xee\x20\x05\x8f\xb1\xd6\xa1\xfa\x4b\x39\x64\x59\x11\xe9\xc0\xe5\x71\x5a\xe9\xc6\x64\xbd\x67\x34\x5e\x25\xe7\xdb\x36\xc9\x4e\xe3\x5f\x8b\x48\x2f\xc4\xbf\x61\xfb\x13\x2a\x4d\x0a\x31\x4a\xad\x04\x38\x5a\x88\x14\xda\x33\x68",
3535
*b"\x7b\xe4\xad\xf4\x2e\x62\x72\x62\xce\x8f\x7b\x32\x0e\xac\x4a\x9c\x9e\x99\x1b\x99\xb7\xf2\x68\x54\x43\xb0\x45\xe9\x74\x85\xad\x3e\x18\x9e\x66\xdf\xca\x09\xea\xff\x5d\x60\xca\x38\x4a\x25\x1e\x36\x4f\xa6\x91\x35\x31\x34\x9e\xe8\x8a\x8b\x91\x1b\x4e\x9d\xbd\x6a\xd9\x45\x42\xb9\x3e\x42\xd5\x3a\x97\x7a\xa3\x73\x20\x92\xb8\x27\x41\x62\x0f\x13\x48\xde\xd7\xbd\x12\x26\x29\x7c\xe4\xc6\xb9\xf7\xf3\xbc\x3a\xc9\x2c\x07\x69\x41\xaa\x26\x26\xfe\x3d\xd4\xb0\x14\x9f\xc9\x69\xc7\x5b\x53\x79\xc6\x69\x93\x9f\x5c\x94\xc6\x5d\xbf\x25\xc0\xc5\xa4\x6f\x19\x10\x2e\x69\xc3\x6b\x89\xa6\x3e\x9e\x2d\x1d\x44\x33\x7f\x97\x97\xe8\xcc\x1d\x97\x1f\x53\x03\xe3\x38\x80\x34\x7c\x8d\x86\xb2\xc3\xfd\x05\xbf\x93\xba\xe8\x21\xf0\x45\x5c\xed\x08\x5b\x85\x21\x35\x3c\xa7\x15\x78\x61\x00\x45\xcd\x21\x2e\xd6\xc5\xb6\x20\x4d\x5c\x24\x69\x83\x1d\x3a\x08\xa5\x54\x77\x5a\x2b\xce\xec\x46\x0d\x99\x73\xc6\x0c\x78\x2d\x0a\xe7\x8b\x3a\xdd\xc4\x44\x34\x41\x99\x0b\x9d\x51\xbd\xf5\xaa\x00\x50\xa4\xd7\x14\x9b\x44\x73\x3c\x00\x78\xd6\xf8\xbc\xef\xdd\x14\xae\x63\x1d\x1f\x0f\xf8\x22\xce\x5c\x90\x6e\x34\xf3\x76\xdf\x7a\x73\xf9\x77\x1b\x34\x8d\x52\xfe\xdd\x82\x85\x88\x8a\x80\x95\x09\x8d\xed\x30\x2e\x76\x11\x7e\x76\xfb\x1a\xa0\x7e\x2f\x23\xdf\xbd\x29\x4a\xf6\xb4\x55\xa3\x78\x85\xb5\x2e\xa5\x6a\xd4\x4d\xb6\x46\x9e\xb8\xad\x3a\x50\x2e\xb3\xe9\x9b\x9d\x43\xa7\x21\xc2",
@@ -40,7 +40,7 @@ pub const STRINGS: [[u8; 330]; 8] = [
4040
*b"\xc5\x48\x51\x10\xdb\x1e\x21\xc9\x46\xb1\xe6\x2e\x70\x94\x81\xf8\xcf\x23\x39\x46\xd4\x78\xe9\x32\xfb\xca\x8b\xa1\x19\xb6\xf8\xa2\xa4\xad\xf4\x18\x75\x61\xaa\x6c\x2d\x14\xc2\xba\x60\xa0\x5d\x0d\x8e\xa2\x1a\x90\x8f\x95\xa4\xbd\xc9\x9f\xe9\xfa\x73\x98\x3e\x0f\xce\x2a\xc1\xc1\x67\x2b\x37\xfe\xaa\xea\xa7\x61\x5e\x75\x39\xcd\xe1\x60\xe7\x54\xc9\xc4\xc2\x3d\x4a\x5e\xad\x71\x99\x68\x7e\x4d\xcb\x9e\x8d\x63\x6e\x11\x20\x50\xa7\x71\x89\x45\xa4\x9c\xc4\x9e\x52\x86\xa9\x8d\x86\xc2\x3a\x9f\x79\x4a\x15\x06\x8d\xd8\xff\xe3\xcc\x58\xce\x6f\x5b\x92\x49\x98\x94\x88\x7f\xc4\x74\x68\x65\xa9\x99\xd9\xf2\xe8\xde\x8d\xe7\xb0\xcb\x3e\x5a\xd0\x99\x2c\xeb\x87\xe8\xc4\x31\x29\x5f\x0e\xbd\x29\x1b\xec\xbd\xed\xe3\x9c\xdc\xc2\x63\x05\xa8\x13\x0f\x5d\x8a\x58\x87\x93\x2c\xa7\x45\x09\x6c\x03\x77\x08\x3a\x0f\x0d\x2d\xce\xa1\xff\x23\xb3\xc1\x0c\xf3\x2e\xe5\x69\x63\x9c\x27\x94\xfb\x3e\xa4\x38\xbd\xc5\x17\xf0\x67\x5b\xe2\x13\x56\x4c\xd3\x48\x2c\x70\x58\xea\x18\x8c\xf3\x9b\xbd\xcf\xa1\x60\x6c\x92\xc8\xfb\xf2\x6f\x7c\x3c\xb7\x9b\xf3\x61\x34\x27\x3c\x8d\xe4\x9e\x61\x15\xf1\x50\xf8\x17\xcf\x2e\x6e\x5b\x5c\xf7\x13\xb2\x1a\x79\xda\xc6\x84\xcd\x18\x9e\xb2\x42\x71\xa5\x64\x3a\x2f\x18\xa4\x67\x65\xbc\x30\x41\xf6\x02\x42\xd3\x49\xe9\x07\x57\xae\x24\x8c\xb8\xd7\x4c\x81\xc4\xc8\x6f\x3a\xbb\xe0\x3e\x8b\xe3\xda\xf0\xf2\x2e\xf7\x78\x5b\x75\x4c\x44\x49",
4141
];
4242

43-
pub const HASHES: [[&str; 331]; 8] = [
43+
pub static HASHES: [[&str; 331]; 8] = [
4444
[
4545
// string 0
4646
"d41d8cd98f00b204e9800998ecf8427e", // 0

crates/utils/src/parser/macros.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ macro_rules! parser_literal_map {
6666
/// parsers match:
6767
/// - **Expression (`=>`)**: The expression on the right-hand is evaluated and returned.
6868
/// - **Fallible (`=?>`)**: Similar to Expression, but the right-hand side evaluates a result. If
69-
/// the expression evaluates to [`Ok`], the value contained inside is returned. Otherwise,
70-
/// the string contained inside the [`Err`] is handled as a custom
71-
/// [`ParseError`](super::ParseError), and parsing will continue with the following rule.
69+
/// the expression evaluates to [`Ok`], the value contained inside is returned. Otherwise, the
70+
/// string contained inside the [`Err`] is handled as a custom [`ParseError`](super::ParseError),
71+
/// and parsing will continue with the following rule.
7272
/// - **Subtree (`=>>`)**: The right-hand side is a nested set of rules enclosed in braces.
7373
///
7474
/// If none of the rules match successfully, the error from the rule which parsed furthest into

crates/utils/src/simd/avx2.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
use std::ops::{Add, BitAnd, BitOr, BitXor, Not};
44

55
#[cfg(target_arch = "x86_64")]
6-
#[expect(clippy::wildcard_imports)]
6+
#[allow(clippy::allow_attributes, clippy::wildcard_imports)]
77
use std::arch::x86_64::*;
88

99
#[cfg(target_arch = "x86")]
10-
#[expect(clippy::wildcard_imports)]
10+
#[allow(clippy::allow_attributes, clippy::wildcard_imports)]
1111
use std::arch::x86::*;
1212

1313
/// AVX2 vector with eight [u32] lanes.

lefthook.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pre-commit:
88
rustfmt:
99
run: cargo fmt --all --check
1010
clippy:
11-
run: cargo clippy --all -- -Dwarnings
11+
run: cargo clippy --all --all-targets -- -Dwarnings
1212
test:
1313
run: cargo nextest run --all
1414
doctest:

0 commit comments

Comments
 (0)