est31 / cargo-udeps

Find unused dependencies in Cargo.toml
Other
1.76k stars 46 forks source link

update cargo version to 0.50.1 #88

Closed beyera closed 3 years ago

beyera commented 3 years ago

The build is currently broken.

This PR updates the cargo version to fix the following error:

error[E0283]: type annotations needed
Error:    --> C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\cargo-0.50.0\src/cargo\util\config\de.rs:530:63
    |
530 |                 seed.deserialize(Tuple2Deserializer(1i32, env.as_ref()))
    |                                                           ----^^^^^^--
    |                                                           |   |
    |                                                           |   cannot infer type for type parameter `T` declared on the trait `AsRef`
    |                                                           this method call resolves to `&T`
    |
    = note: cannot satisfy `std::string::String: AsRef<_>`
est31 commented 3 years ago

Thanks but this PR isn't needed. cargo install cargo-udeps takes the latest version of each crate, while cargo install --locked cargo-udeps takes the version in the lockfile. The second method was never broken, the first was broken but with the 0.50.1 release it works now. So both install methods work now again.