).collect_vec();
let pieces_configs = ids.iter().cloned().map(|id| {
- [false,true].iter().cloned().map( move |bottom| {
+ iproduct!(
+ [false,true].iter().cloned()
+ ).map( move |bottom| {
StartPieceSpec {
id,
pinned: bottom,
pub use fs2::FileExt;
pub use if_chain::if_chain;
pub use index_vec::{define_index_type, index_vec, IndexSlice, IndexVec};
-pub use itertools::{izip, zip_eq, EitherOrBoth, Itertools};
+pub use itertools::{iproduct, izip, zip_eq, EitherOrBoth, Itertools};
pub use lazy_static::lazy_static;
pub use log::{debug, error, info, trace, warn};
pub use log::{log, log_enabled};