Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when install cargo-geiger #200

Closed
surechen opened this issue Mar 17, 2021 · 1 comment
Closed

error when install cargo-geiger #200

surechen opened this issue Mar 17, 2021 · 1 comment

Comments

@surechen
Copy link

Hello,I think geiger is a very good crate and want to use it. when I install cargo-geiger by “cargo install cargo-geiger”, I get following error.
My cargo version is 1.50.0

error[E0283]: type annotations needed
--> /root/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/cargo-0.46.1/src/cargo/util/config/de.rs:471:63
|
471 | 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<_>

error: aborting due to previous error

For more information about this error, try rustc --explain E0283.
error: failed to compile cargo-geiger v0.10.2, intermediate artifacts can be found at /tmp/cargo-installDlo7zr

Caused by:
could not compile cargo

To learn more, run the command again with --verbose.

@surechen
Copy link
Author

Learn from #185 (comment) to solve.
Close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant