Skip to content

Commit

Permalink
Clean imports
Browse files Browse the repository at this point in the history
  • Loading branch information
slgeay committed Dec 17, 2024
1 parent 9e21025 commit ae31f90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/template/runner.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/// Encapsulates code that interacts with solution functions.
use std::fmt::Display;
use std::hint::black_box;
use std::io::{stdout, Write};
use std::process::Output;
use std::time::{Duration, Instant};
use std::{cmp, env, process};

use crate::template::ANSI_BOLD;
use crate::template::{aoc_cli, Day, ANSI_ITALIC, ANSI_RESET};
use crate::template::{aoc_cli, Day, ANSI_RESET};

pub fn run_part<I: Clone, T: Display>(func: impl Fn(I) -> Option<T>, input: I, day: Day, part: u8) {
let part_str = format!("Part {part}");
Expand Down Expand Up @@ -53,7 +52,7 @@ fn bench<I: Clone, T>(func: impl Fn(I) -> T, input: I, base_time: &Duration) ->
let mut timers: Vec<Duration> = vec![];

if bench_iterations == 1 {
return (base_time.clone(), 1);
return (*base_time, 1);
}

for _ in 0..bench_iterations {
Expand Down

0 comments on commit ae31f90

Please sign in to comment.