Skip to content

Commit f7688f2

Browse files
manta1130koba-e964
andauthored
Use assert_eq instead of assert
Co-authored-by: Hiroki Kobayashi <3303362+koba-e964@users.noreply.github.com>
1 parent d53934f commit f7688f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/math.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub fn inv_mod(x: i64, m: i64) -> i64 {
2929
}
3030

3131
pub fn crt(r: &[i64], m: &[i64]) -> (i64, i64) {
32-
assert!(r.len() == m.len());
32+
assert_eq!(r.len(), m.len());
3333
// Contracts: 0 <= r0 < m0
3434
let (mut r0, mut m0) = (0, 1);
3535
for (ri, mi) in r.iter().zip(m.iter()) {

0 commit comments

Comments
 (0)