diff --git a/.cargo/config.toml b/.cargo/config.toml index 4580be0cc..cf4aac7ed 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,2 @@ [alias] -xfmt = "fmt -- --config imports_granularity=Crate" +xfmt = "fmt -- --config imports_granularity=Crate --config group_imports=One" diff --git a/src/lib.rs b/src/lib.rs index b1966282a..6d9b8a329 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -83,10 +83,9 @@ mod utils; /// The result type for `datatest-stable` tests. pub type Result = std::result::Result>; -/// A re-export of this type from the `camino` crate, since it forms part of function signatures. -#[doc(no_inline)] -pub use camino::Utf8Path; - /// Not part of the public API, just used for macros. #[doc(hidden)] pub use self::runner::{runner, Requirements, TestFn}; +/// A re-export of this type from the `camino` crate, since it forms part of function signatures. +#[doc(no_inline)] +pub use camino::Utf8Path; diff --git a/src/runner.rs b/src/runner.rs index 92e70cb08..5fa6eb4e6 100644 --- a/src/runner.rs +++ b/src/runner.rs @@ -1,11 +1,10 @@ // Copyright (c) The datatest-stable Contributors // SPDX-License-Identifier: MIT OR Apache-2.0 -use std::{path::Path, process::ExitCode}; - use crate::{utils, Result}; use camino::{Utf8Path, Utf8PathBuf}; use libtest_mimic::{Arguments, Trial}; +use std::{path::Path, process::ExitCode}; #[doc(hidden)] pub fn runner(requirements: &[Requirements]) -> ExitCode {