Skip to content

Commit

Permalink
Split types as advised by rust-clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Jul 7, 2024
1 parent ff3f8a2 commit 9205a06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ use rstest::rstest;
mod p0001;
mod p0002;

const ANSWERS: [(&str, fn() -> u64, u64); 2] = [
type ProblemType = fn() -> u64;
type ProblemRef = (&str, ProblemType, u64);
const ANSWERS: [ProblemRef; 2] = [
("p0001", p0001::p0001, 233168),
("p0002", p0002::p0002, 4613732)
];
Expand Down

0 comments on commit 9205a06

Please sign in to comment.