diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be78248b81..b2d61757fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,6 +104,5 @@ jobs: - uses: actions/checkout@v4 - uses: crate-ci/typos@v1.22.7 with: - config: ./Typos.toml + config: ./typos.toml isolated: true - diff --git a/Typos.toml b/Typos.toml deleted file mode 100644 index 0449825c11..0000000000 --- a/Typos.toml +++ /dev/null @@ -1,13 +0,0 @@ -[default] -extend-ignore-identifiers-re = [ - "[sS]imular", - "ba", - "modul" -] - -[files] -extend-exclude = [ - "CHANGELOG.md", - "tests" -] - diff --git a/crates/precompile/src/bls12_381/utils.rs b/crates/precompile/src/bls12_381/utils.rs index 259d581d85..6cb5a865af 100644 --- a/crates/precompile/src/bls12_381/utils.rs +++ b/crates/precompile/src/bls12_381/utils.rs @@ -84,8 +84,8 @@ pub(super) fn extract_scalar_input(input: &[u8]) -> Result bool { - for (i, modul) in input.iter().zip(MODULUS_REPR.iter()) { - match i.cmp(modul) { + for (i, modulo) in input.iter().zip(MODULUS_REPR.iter()) { + match i.cmp(modulo) { Ordering::Greater => return false, Ordering::Less => return true, Ordering::Equal => continue, diff --git a/typos.toml b/typos.toml new file mode 100644 index 0000000000..db25dd86d7 --- /dev/null +++ b/typos.toml @@ -0,0 +1,5 @@ +[default] +extend-ignore-identifiers-re = ["[sS]imular", "ba"] + +[files] +extend-exclude = ["CHANGELOG.md", "tests"]