lune-org/lune

itertools is not included yet required when not using CLI feature

Closed this issue · 1 comments

error[E0432]: unresolved import `itertools`
 --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lune-0.8.2/src/lune/builtins/process/options/kind.rs:3:5
  |
3 | use itertools::Itertools;
  |     ^^^^^^^^^ use of undeclared crate or module `itertools`

error[E0599]: no method named `join` found for struct `std::iter::Map` in the current scope
  --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lune-0.8.2/src/lune/builtins/process/options/kind.rs:58:26
   |
55 |                       ProcessSpawnOptionsStdioKind::all()
   |                       -----------------------------------
   |                       |
   |  _____________________method `join` is available on `&[kind::ProcessSpawnOptionsStdioKind]`
   | |
56 | |                         .iter()
57 | |                         .map(|k| format!("'{k}'"))
58 | |                         .join(", ")
   | |                         -^^^^ method not found in `Map<Iter<'_, ProcessSpawnOptionsStdioKind>, {closure@kind.rs:57:30}>`
   | |_________________________|
   | 

Can reproduce when using lune as a library for a personal project of mine. Super simple fix, which I've submitted as #176.