From d4484d6cbc9bc280134740fd57ff0323f64d14a9 Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Thu, 25 Jul 2024 00:46:15 -0500 Subject: [PATCH] Remove unnecessary cast --- rust/src/math.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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