Hello. I’m trying to compile code which depends on sn_api = "0.24.0"
. I get an error in sn_api
:
% cargo build --target=i686-unknown-linux-gnu
Compiling sn_api v0.24.0
error[E0532]: expected tuple struct or tuple variant, found struct variant `ClientError::ErrorMessage`
--> /home/devel/.cargo/registry/src/github.com-1ecc6299db9ec823/sn_api-0.24.0/src/api/app/safe_client.rs:312:17
|
312 | ClientError::ErrorMessage(ErrorMessage::AccessDenied(_pk))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use struct pattern syntax instead: `ClientError::ErrorMessage { /* fields */ }`
|
::: /home/devel/.cargo/registry/src/github.com-1ecc6299db9ec823/sn_client-0.52.19/src/errors.rs:125:5
|
125 | ErrorMessage {
| ------------ `ClientError::ErrorMessage` defined here
error[E0532]: expected tuple struct or tuple variant, found struct variant `ClientError::ErrorMessage`
--> /home/devel/.cargo/registry/src/github.com-1ecc6299db9ec823/sn_api-0.24.0/src/api/authenticator/mod.rs:424:21
|
424 | Err(ClientError::ErrorMessage(NoSuchEntry)) => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use struct pattern syntax instead: `ClientError::ErrorMessage { /* fields */ }`
|
::: /home/devel/.cargo/registry/src/github.com-1ecc6299db9ec823/sn_client-0.52.19/src/errors.rs:125:5
|
125 | ErrorMessage {
| ------------ `ClientError::ErrorMessage` defined here
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0532`.
error: could not compile `sn_api`
To learn more, run the command again with --verbose.
I don’t understand, why I get it? Wouldn’t it stop sn_api
to pass CI checks?