Skip to content

Commit

Permalink
fix: solve imports for parallel feature
Browse files Browse the repository at this point in the history
  • Loading branch information
LechintanTudor committed Aug 29, 2024
1 parent b045d6b commit 7d3731a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions src/query/query_all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ use crate::query::{DenseIter, Iter, Query, QueryGroupInfo, SparseIter};
use crate::World;
use core::ops::Range;

#[cfg(feature = "parallel")]
use {
crate::query::{DenseParIter, ParIter, SparseParIter},
rayon::iter::ParallelIterator,
};

#[must_use]
pub struct QueryAll<'a, G, I, E>
where
Expand Down
6 changes: 0 additions & 6 deletions src/query/query_one.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ use crate::entity::Entity;
use crate::query::Query;
use crate::World;

#[cfg(feature = "parallel")]
use {
crate::query::{DenseParIter, ParIter, SparseParIter},
rayon::iter::ParallelIterator,
};

#[must_use]
pub struct QueryOne<'a, G, I, E>
where
Expand Down

0 comments on commit 7d3731a

Please sign in to comment.