clippy
This commit is contained in:
@@ -72,9 +72,7 @@ fn fix(book: &[R], rules: &[(R, R)]) -> Vec<R> {
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use crate::day05::valid_book;
|
||||
|
||||
use super::{part1, part2};
|
||||
use super::{part1, part2, valid_book};
|
||||
|
||||
const TEST_INPUT: &str = r"47|53
|
||||
97|13
|
||||
|
||||
11
src/main.rs
11
src/main.rs
@@ -39,10 +39,9 @@ fn run(d: u8, f: &fn()) {
|
||||
let start = Instant::now();
|
||||
f();
|
||||
let duration = start.elapsed();
|
||||
println!(
|
||||
"{color}{italic}Took {duration:?}{reset_formatting}",
|
||||
color = "\x1b[38;5;247m",
|
||||
italic = "\x1b[3m",
|
||||
reset_formatting = "\x1b[0m"
|
||||
);
|
||||
println!("{COLOR}{ITALIC}Took {duration:?}{RESET_FORMATTING}");
|
||||
}
|
||||
|
||||
const COLOR: &str = "\x1b[38;5;247m";
|
||||
const ITALIC: &str = "\x1b[3m";
|
||||
const RESET_FORMATTING: &str = "\x1b[0m";
|
||||
|
||||
Reference in New Issue
Block a user