birkenfeld / fddf

Fast data dupe finder
Apache License 2.0
114 stars 7 forks source link

fddf compile error #13

Closed manfredlotz closed 6 years ago

manfredlotz commented 6 years ago

I wanted to look at newest changes, after cloning the repository I ran

cargo build

and got

error[E0277]: the trait bound `std::path::PathBuf: std::str::FromStr` is not satisfied
   --> src/main.rs:178:10
    |
178 | #[derive(StructOpt)]
    |          ^^^^^^^^^ the trait `std::str::FromStr` is not implemented for `std::path::PathBuf`
    |
    = note: required by `std::str::FromStr::from_str`

error[E0619]: the type of this value must be known in this context
   --> src/main.rs:178:10
    |
178 | #[derive(StructOpt)]
    |          ^^^^^^^^^

error: aborting due to 2 previous errors

error: Could not compile `fddf`.

rust compiler is rustc 1.25.0 (84203cac6 2018-03-25)

birkenfeld commented 6 years ago

Indeed, FromStr for Path/PathBuf seems to be new in 1.26. I'll just use String instead.