Skip to content

Commit

Permalink
cargo fmt & clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
gshep committed Feb 15, 2024
1 parent c49a500 commit 5114f5d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions maybe_rayon/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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")]
Expand Down

0 comments on commit 5114f5d

Please sign in to comment.