Fix errors reported by new version of cspell

This commit is contained in:
Daniel Hofstetter 2024-02-05 09:02:54 +01:00
parent 921cbe4dba
commit d2a75457f6
6 changed files with 6 additions and 5 deletions

View file

@ -10,7 +10,7 @@ from pathlib import Path
# third party dependencies # third party dependencies
from tqdm import tqdm from tqdm import tqdm
# spell-checker:ignore (libs) tqdm imap ; (shell/mac) xcrun ; (vars) nargs # spell-checker:ignore (libs) tqdm imap ; (shell/mac) xcrun ; (vars) nargs retcode csvfile
BINS_PATH = Path("../src/uu") BINS_PATH = Path("../src/uu")
CACHE_PATH = Path("compiles_table.csv") CACHE_PATH = Path("compiles_table.csv")

View file

@ -111,7 +111,7 @@ impl<T: DoubleInt> Arithmetic for Montgomery<T> {
} }
fn to_mod(&self, x: u64) -> Self::ModInt { fn to_mod(&self, x: u64) -> Self::ModInt {
// TODO: optimise! // TODO: optimize!
debug_assert!(x < self.n.as_u64()); debug_assert!(x < self.n.as_u64());
let r = T::from_double_width( let r = T::from_double_width(
((T::DoubleWidth::from_u64(x)) << T::zero().count_zeros() as usize) ((T::DoubleWidth::from_u64(x)) << T::zero().count_zeros() as usize)

View file

@ -2,7 +2,7 @@
// //
// For the full copyright and license information, please view the LICENSE // For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code. // file that was distributed with this source code.
// spell-checker:ignore abcdefgh // spell-checker:ignore abcdefgh abef
use clap::{ use clap::{
builder::{PossibleValue, TypedValueParser}, builder::{PossibleValue, TypedValueParser},
error::{ContextKind, ContextValue, ErrorKind}, error::{ContextKind, ContextValue, ErrorKind},

View file

@ -2,7 +2,7 @@
// //
// For the full copyright and license information, please view the LICENSE // For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code. // file that was distributed with this source code.
// spell-checker:ignore (words) READMECAREFULLY birthtime doesntexist oneline somebackup lrwx somefile somegroup somehiddenbackup somehiddenfile tabsize aaaaaaaa bbbb cccc dddddddd ncccc neee naaaaa nbcdef nfffff dired subdired tmpfs mdir COLORTERM mexe // spell-checker:ignore (words) READMECAREFULLY birthtime doesntexist oneline somebackup lrwx somefile somegroup somehiddenbackup somehiddenfile tabsize aaaaaaaa bbbb cccc dddddddd ncccc neee naaaaa nbcdef nfffff dired subdired tmpfs mdir COLORTERM mexe bcdef
#[cfg(any(unix, feature = "feat_selinux"))] #[cfg(any(unix, feature = "feat_selinux"))]
use crate::common::util::expected_result; use crate::common::util::expected_result;

View file

@ -3,7 +3,7 @@
// For the full copyright and license information, please view the LICENSE // For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code. // file that was distributed with this source code.
// //
// spell-checker:ignore binvalid finvalid hinvalid iinvalid linvalid nabcabc nabcabcabc ninvalid vinvalid winvalid // spell-checker:ignore binvalid finvalid hinvalid iinvalid linvalid nabcabc nabcabcabc ninvalid vinvalid winvalid dabc näää
use crate::common::util::TestScenario; use crate::common::util::TestScenario;
#[test] #[test]

View file

@ -1,3 +1,4 @@
# spell-checker:ignore debuginfo
import subprocess import subprocess
from itertools import product from itertools import product
import shutil import shutil