1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Merge pull request #6240 from cakebaker/factor_remove_zero_method

factor: remove unused method `zero`
This commit is contained in:
Sylvestre Ledru 2024-04-15 20:09:49 +02:00 committed by GitHub
commit e194022c1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,12 +43,10 @@ pub(crate) trait Arithmetic: Copy + Sized {
fn one(&self) -> Self::ModInt {
self.to_mod(1)
}
fn minus_one(&self) -> Self::ModInt {
self.to_mod(self.modulus() - 1)
}
fn zero(&self) -> Self::ModInt {
self.to_mod(0)
}
}
#[derive(Clone, Copy, Debug)]