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

"cargo test" fails #2

Open
yzernik opened this issue May 11, 2022 · 0 comments
Open

"cargo test" fails #2

yzernik opened this issue May 11, 2022 · 0 comments

Comments

@yzernik
Copy link
Owner

yzernik commented May 11, 2022

yzernik@yzernik-MacBookPro:~/work/agora$ cargo test
   Compiling lightning v0.0.102
   Compiling hyper-timeout v0.4.1
   Compiling hyper-rustls v0.23.0
   Compiling hyper-openssl v0.9.1
   Compiling chromiumoxide v0.3.2
   Compiling tonic v0.5.2
   Compiling reqwest v0.11.7
   Compiling agora-test-context v0.0.0 (/home/yzernik/work/agora/agora-test-context)
   Compiling agora-lnd-client v0.0.2 (/home/yzernik/work/agora/agora-lnd-client)
   Compiling lnd-test-context v0.0.0 (/home/yzernik/work/agora/lnd-test-context)
error[E0034]: multiple applicable items in scope
   --> /home/yzernik/.cargo/registry/src/github.com-1ecc6299db9ec823/lightning-0.0.102/src/ln/msgs.rs:962:32
    |
962 |             DecodeError::Io(ref e) => e.fmt(f),
    |                                         ^^^ multiple `fmt` found
    |
    = note: candidate #1 is defined in an impl of the trait `std::fmt::Display` for the type `ErrorKind`
    = note: candidate #2 is defined in an impl of the trait `Debug` for the type `ErrorKind`
help: disambiguate the associated function for candidate #1
    |
962 |             DecodeError::Io(ref e) => std::fmt::Display::fmt(&e, f),
    |                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
help: disambiguate the associated function for candidate #2
    |
962 |             DecodeError::Io(ref e) => Debug::fmt(&e, f),
    |                                       ~~~~~~~~~~~~~~~~~

For more information about this error, try `rustc --explain E0034`.
error: could not compile `lightning` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed

Possibly because of using the newer version of Rust:

yzernik@yzernik-MacBookPro:~/work/agora$ cargo --version
cargo 1.60.0 (d1fd9fe 2022-03-01)
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