From f1025071edfb787309a75d4bb68bec0c2bd906bb Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 24 Jun 2023 15:05:59 +0200 Subject: Tidy up --- tests/src/tests.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/src/tests.rs b/tests/src/tests.rs index ee87f3ed..4aa459af 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -2,13 +2,14 @@ use std::cell::{RefCell, RefMut}; use std::collections::{HashMap, HashSet}; +use std::env; use std::ffi::OsStr; use std::fmt::Write as FmtWrite; -use std::io::Write; +use std::fs; +use std::io::{self, Write}; +use std::iter; use std::ops::Range; use std::path::{Path, PathBuf}; -use std::{env, io}; -use std::{fs, iter}; use clap::Parser; use comemo::{Prehashed, Track}; @@ -555,10 +556,11 @@ fn test_part( } // Map errors to range and message format, discard traces and errors from - // other files. Collect hints. + // other files, collect hints. // - // This has one caveat: due to the format of the expected hints, we can not verify if a hint belongs - // to a error or not. That should be irrelevant however, as the line of the hint is still verified. + // This has one caveat: due to the format of the expected hints, we can not + // verify if a hint belongs to a error or not. That should be irrelevant + // however, as the line of the hint is still verified. let actual_errors_and_hints: HashSet = errors .into_iter() .filter(|error| error.span.source() == id) -- cgit v1.2.3