From f5f91516fa9de9068f61aac906a2df1ca75e4ec4 Mon Sep 17 00:00:00 2001 From: Arvid Norlander Date: Sat, 27 Jul 2024 10:57:33 +0200 Subject: [PATCH] chore: Rustrover optimise imports --- src/lib.rs | 8 ++++---- src/tests.rs | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d78448f..74beab3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,10 +28,6 @@ //! //! The actual output is uses ANSI colour codes as well. -pub mod checks; -#[cfg(test)] -mod tests; - use std::cmp::max; use std::io::Write; @@ -41,6 +37,10 @@ use anstyle::Reset; use strum::IntoStaticStr; use thiserror::Error; +pub mod checks; +#[cfg(test)] +mod tests; + /// Error from medic #[derive(Debug, Error)] #[non_exhaustive] diff --git a/src/tests.rs b/src/tests.rs index 757442f..b3b50d5 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -1,7 +1,8 @@ +use pretty_assertions::assert_eq; + use crate::medic; use crate::Check; use crate::CheckResult; -use pretty_assertions::assert_eq; #[test] fn test_medic() {