diff --git a/rust/armstrong-numbers/src/lib.rs b/rust/armstrong-numbers/src/lib.rs index 8b024ca..a63edb6 100644 --- a/rust/armstrong-numbers/src/lib.rs +++ b/rust/armstrong-numbers/src/lib.rs @@ -6,8 +6,7 @@ pub fn is_armstrong_number(num: u32) -> bool { let divisor = 10u32.pow(i); let quotient = num / divisor; let digit = quotient % 10; - let raised = digit.pow(count); - raised + digit.pow(count) }).sum(); num == armstrong_sum }