From b7cda0a0ecfb2fc37c31387c0dfc2bc5760cd3e9 Mon Sep 17 00:00:00 2001 From: George Thomas Date: Mon, 12 Jan 2026 18:27:53 +0000 Subject: [PATCH] Always show Rust test timings Matches the Haskell now that we're no longer using Sydtest. --- rust/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rust/main.rs b/rust/main.rs index 62a945c..f05b73c 100644 --- a/rust/main.rs +++ b/rust/main.rs @@ -9,7 +9,7 @@ use puzzles::day5; use puzzles::day6; use puzzles::day7; use std::fs; -use std::time::{Duration, Instant}; +use std::time::Instant; const PUZZLES: [&dyn SomePuzzle; 7] = [ &day1::PUZZLE, @@ -42,9 +42,7 @@ fn main() { n, if expected == output { let mut s = String::from("OK"); - if elapsed > Duration::from_millis(10) { - s.push_str(&format!(" ({:?})", elapsed)); - } + s.push_str(&format!(" ({:?})", elapsed)); s } else { format!("expected {}, got {}", expected, output)