Skip to content

Commit 4e6065b

Browse files
committed
fmt: cargo clippy
1 parent 38624c9 commit 4e6065b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/internal_math.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ pub(crate) fn floor_sum_unsigned(mut n: u64, mut m: u64, mut a: u64, mut b: u64)
267267
b = y_max % m;
268268
std::mem::swap(&mut m, &mut a);
269269
}
270-
return ans;
270+
ans
271271
}
272272

273273
#[cfg(test)]

src/math.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ pub fn crt(r: &[i64], m: &[i64]) -> (i64, i64) {
185185
///
186186
/// assert_eq!(math::floor_sum(6, 5, 4, 3), 13);
187187
/// ```
188+
#[allow(clippy::many_single_char_names)]
188189
pub fn floor_sum(n: i64, m: i64, mut a: i64, mut b: i64) -> i64 {
189190
assert!(0 <= n && n < 1i64 << 32);
190191
assert!(1 <= m && m < 1i64 << 32);
@@ -313,6 +314,7 @@ mod tests {
313314
}
314315
}
315316

317+
#[allow(clippy::many_single_char_names)]
316318
fn floor_sum_naive(n: i64, m: i64, a: i64, b: i64) -> i64 {
317319
let mut ans = 0;
318320
for i in 0..n {

0 commit comments

Comments
 (0)