Update deps
cached macro is now easier to read.
This commit is contained in:
parent
2759b7e1f6
commit
7188518ae1
3 changed files with 123 additions and 147 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use aoc::*;
|
||||
use cached::{proc_macro::cached, stores::UnboundCache};
|
||||
use cached::proc_macro::cached;
|
||||
use std::collections::HashSet;
|
||||
|
||||
const INPUT: &str = include_str!("../../input/07");
|
||||
|
|
@ -53,8 +53,7 @@ fn split_count(splitters: &HashSet<i32>, beams: HashSet<i32>) -> (usize, HashSet
|
|||
}
|
||||
|
||||
#[cached(
|
||||
type = "UnboundCache<(i32, usize), usize>",
|
||||
create = "{ UnboundCache::new() }",
|
||||
key = "(i32, usize)",
|
||||
convert = r#"{ (beam, depth) }"#
|
||||
)]
|
||||
fn timelines(beam: i32, depth: usize, splitters: &[HashSet<i32>]) -> usize {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue