2024: clippies

This commit is contained in:
ktims committed 2026-12-02 14:09:23 -07:00
1 parent 966ac945ed
commit 2121d0dc55
7 files changed
+69 -41

No files matched your search

+1 -2
View File
@@ -1,7 +1,6 @@
use aoc_runner_derive::aoc;
use itertools::Itertools;
use rustc_hash::FxHashMap;
use std::iter::repeat;
type IntType = u64;
type CacheType = FxHashMap<Stone, IntType>;
@@ -66,7 +65,7 @@ fn count_blinks(stone: &Stone, blink: usize, cache: &mut Vec<CacheType>) -> IntT
}
fn blink_stones(stones: Stones, blinks: usize) -> IntType {
let mut cache = Vec::from_iter(repeat(CacheType::default()).take(blinks));
let mut cache = Vec::from_iter(std::iter::repeat_n(CacheType::default(), blinks));
stones
.0
.iter()