diff --git a/rust/src/math.rs b/rust/src/math.rs index 03102fdd..448ffb17 100644 --- a/rust/src/math.rs +++ b/rust/src/math.rs @@ -28,7 +28,7 @@ where I: Copy + From + From + NumAssign + PartialOrd if n < r { panic!("Out of function's bounds"); } - if n < MAX_FACTORIAL[size_of::() as usize] as usize { + if n < MAX_FACTORIAL[size_of::()] as usize { return factorial::(n as u8) / factorial::(r as u8); } // slow path for larger numbers