Skip to content

Commit bd447c0

Browse files
clippy: allow many single-char names
1 parent 65b1f88 commit bd447c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/internal_math.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl Barrett {
4747
///
4848
/// # Returns
4949
/// a * b % m
50+
#[allow(clippy::many_single_char_names)]
5051
fn mul(&self, a: u32, b: u32) -> u32 {
5152
// [1] m = 1
5253
// a = b = im = 0, so okay
@@ -76,6 +77,7 @@ impl Barrett {
7677
/// # Returns
7778
/// `(x ** n) % m`
7879
/* const */
80+
#[allow(clippy::many_single_char_names)]
7981
fn pow_mod(x: i64, mut n: i64, m: i32) -> i64 {
8082
if m == 1 {
8183
return 0;
@@ -135,6 +137,7 @@ fn is_prime(n: i32) -> bool {
135137
/// # Returns
136138
/// (g, x) s.t. g = gcd(a, b), xa = g (mod b), 0 <= x < b/g
137139
/* const */
140+
#[allow(clippy::many_single_char_names)]
138141
fn inv_gcd(a: i64, b: i64) -> (i64, i64) {
139142
let a = safe_mod(a, b);
140143
if a == 0 {

0 commit comments

Comments
 (0)