diff options
| author | mo8it <mo8it@proton.me> | 2024-08-22 14:41:25 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-08-22 14:41:25 +0200 |
| commit | f1abd8577c824eac4eb152a4b0789ce23642ba62 (patch) | |
| tree | 543b9569480abfd1b33a4e9536436f02d90dd7bc /solutions/18_iterators | |
| parent | 423b50b068f7cb489e4c5f241b696491419620c1 (diff) | |
Add missing Clippy allows to solutions
Diffstat (limited to 'solutions/18_iterators')
| -rw-r--r-- | solutions/18_iterators/iterators4.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/solutions/18_iterators/iterators4.rs b/solutions/18_iterators/iterators4.rs index 4c3c49d..4168835 100644 --- a/solutions/18_iterators/iterators4.rs +++ b/solutions/18_iterators/iterators4.rs @@ -25,6 +25,7 @@ fn factorial_fold(num: u64) -> u64 { // -> 1 * 2 is calculated, then the result 2 is multiplied by // the second element 3 so the result 6 is returned. // And so on… + #[allow(clippy::unnecessary_fold)] (2..=num).fold(1, |acc, x| acc * x) } |
