This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
fix: latest changes in sov_bank
#343
GitHub Actions / clippy
failed
Apr 30, 2024 in 0s
clippy
2 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.77.2 (25ef9e3d8 2024-04-09)
- cargo 1.77.2 (e52e36006 2024-03-26)
- clippy 0.1.77 (25ef9e3 2024-04-09)
Annotations
Check failure on line 21 in modules/sov-ibc-transfer/src/utils.rs
github-actions / clippy
the trait bound `<S as sov_modules_api::Spec>::Address: std::convert::From<[u8; 32]>` is not satisfied
error[E0277]: the trait bound `<S as sov_modules_api::Spec>::Address: std::convert::From<[u8; 32]>` is not satisfied
--> modules/sov-ibc-transfer/src/utils.rs:21:26
|
21 | escrow_account_bytes.into()
| ^^^^ the trait `std::convert::From<[u8; 32]>` is not implemented for `<S as sov_modules_api::Spec>::Address`, which is required by `[u8; 32]: std::convert::Into<_>`
|
= note: required for `[u8; 32]` to implement `std::convert::Into<<S as sov_modules_api::Spec>::Address>`
help: consider further restricting the associated type
|
10 | pub fn compute_escrow_address<S: Spec>(port_id: &PortId, channel_id: &ChannelId) -> S::Address where <S as sov_modules_api::Spec>::Address: std::convert::From<[u8; 32]> {
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Check failure on line 21 in modules/sov-ibc-transfer/src/utils.rs
github-actions / clippy
the trait bound `<S as sov_modules_api::Spec>::Address: std::convert::From<[u8; 32]>` is not satisfied
error[E0277]: the trait bound `<S as sov_modules_api::Spec>::Address: std::convert::From<[u8; 32]>` is not satisfied
--> modules/sov-ibc-transfer/src/utils.rs:21:26
|
21 | escrow_account_bytes.into()
| ^^^^ the trait `std::convert::From<[u8; 32]>` is not implemented for `<S as sov_modules_api::Spec>::Address`, which is required by `[u8; 32]: std::convert::Into<_>`
|
= note: required for `[u8; 32]` to implement `std::convert::Into<<S as sov_modules_api::Spec>::Address>`
help: consider further restricting the associated type
|
10 | pub fn compute_escrow_address<S: Spec>(port_id: &PortId, channel_id: &ChannelId) -> S::Address where <S as sov_modules_api::Spec>::Address: std::convert::From<[u8; 32]> {
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Loading