cargo-travis icon indicating copy to clipboard operation
cargo-travis copied to clipboard

cargo install cargo-travis fails

Open killkrt opened this issue 4 years ago • 1 comments

Hi,

I've tried to install cargo-travis (using cargo install cargo-travis) on a Travis CI machine and then on my machine and I got the same error:

   Compiling cargo-travis v0.0.11
error[E0277]: a value of type `[_]` cannot be built from an iterator over elements of type `PathBuf`
   --> /home/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-travis-0.0.11/src/lib.rs:307:53
    |
307 |             &doc.map(|entry| entry.unwrap().path()).collect(),
    |                                                     ^^^^^^^ value of type `[_]` cannot be built from `std::iter::Iterator<Item=PathBuf>`
    |
    = help: the trait `FromIterator<PathBuf>` is not implemented for `[_]`

error: aborting due to previous error

I am using the following (stable) toolchain: rustc 1.48.0 (7eac88abb 2020-11-16) cargo 1.48.0 (65cbdd2dc 2020-10-14)

killkrt avatar Dec 02 '20 21:12 killkrt

I can confirm this with: cargo-travis v0.0.11 rustc 1.49.0 (e1884a8e3 2020-12-29) cargo 1.49.0 (d00d64df9 2020-12-05)

HenningTimm avatar Jan 05 '21 19:01 HenningTimm