From 9205a06b9d39cbe8aa447c3f0b06f279ca85608d Mon Sep 17 00:00:00 2001 From: Olivia Appleton Date: Sun, 7 Jul 2024 18:53:51 -0500 Subject: [PATCH] Split types as advised by rust-clippy --- rust/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rust/src/main.rs b/rust/src/main.rs index e433af1b..b5df7267 100644 --- a/rust/src/main.rs +++ b/rust/src/main.rs @@ -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) ];