From deeb163b901cac7169c2e0363bfff8e44d264c8c Mon Sep 17 00:00:00 2001 From: Andinus Date: Sat, 11 Sep 2021 19:06:34 +0530 Subject: Rust: Complete Armstrong Numbers --- README.org | 4 ++-- rust/armstrong-numbers/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.org b/README.org index 60b130f..cf611ca 100644 --- a/README.org +++ b/README.org @@ -91,9 +91,9 @@ My solutions for [[https://exercism.io][Exercism]] exercises. - [ ] Acronym - [ ] Allergies -* Rust [2/4] +* Rust [3/4] - [X] Hello World - [X] Lucian's Luscious Lasagna -- [ ] Armstrong Numbers +- [X] Armstrong Numbers - [ ] Assembly Line diff --git a/rust/armstrong-numbers/src/lib.rs b/rust/armstrong-numbers/src/lib.rs index 370cbf3..442760c 100644 --- a/rust/armstrong-numbers/src/lib.rs +++ b/rust/armstrong-numbers/src/lib.rs @@ -13,5 +13,5 @@ pub fn is_armstrong_number(num: u32) -> bool { tmp /= 10 } - return arms == num; + arms == num } -- cgit 1.4.1-2-gfad0