From 5114f5d38ff12730e5f750929dde1e8ca688a832 Mon Sep 17 00:00:00 2001 From: Georgy Shepelev Date: Thu, 15 Feb 2024 16:08:57 +0400 Subject: [PATCH] cargo fmt & clippy --- maybe_rayon/src/lib.rs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/maybe_rayon/src/lib.rs b/maybe_rayon/src/lib.rs index 7e5c1989b9..47619e2291 100644 --- a/maybe_rayon/src/lib.rs +++ b/maybe_rayon/src/lib.rs @@ -2,15 +2,6 @@ extern crate alloc; -#[cfg(not(feature = "parallel"))] -use { - core::{ - iter::{FlatMap, IntoIterator, Iterator}, - slice::{self, Chunks, ChunksExact, ChunksExactMut, ChunksMut}, - }, - alloc::vec::Vec, -}; - #[cfg(feature = "parallel")] pub use rayon::{ self, @@ -27,6 +18,14 @@ use rayon::{ ChunksMut as ParChunksMut, ParallelSlice, ParallelSliceMut, }, }; +#[cfg(not(feature = "parallel"))] +use { + alloc::vec::Vec, + core::{ + iter::{FlatMap, IntoIterator, Iterator}, + slice::{self, Chunks, ChunksExact, ChunksExactMut, ChunksMut}, + }, +}; pub trait MaybeParIter<'data> { #[cfg(feature = "parallel")]