IBC Hooks: add hooks to call bridge escrow program #1810
master.yml
on: pull_request
Miscellaneous checks
3m 15s
Anchor Test
19m 40s
Rust tests
8m 59s
Annotations
9 errors and 2 warnings
unneeded `return` statement:
solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs#L239
error: unneeded `return` statement
--> solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs:239:21
|
239 | / return ibc::AcknowledgementStatus::error(
240 | | ibc::TokenTransferError::Other(err.to_string()).into(),
241 | | );
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
= note: `-D clippy::needless-return` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_return)]`
help: remove `return`
|
239 ~ ibc::AcknowledgementStatus::error(
240 + ibc::TokenTransferError::Other(err.to_string()).into(),
241 ~ )
|
|
this expression creates a reference which is immediately dereferenced by the compiler:
solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs#L218
error: this expression creates a reference which is immediately dereferenced by the compiler
--> solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs:218:52
|
218 | instruction_data.extend_from_slice(&intent_id.as_bytes());
| ^^^^^^^^^^^^^^^^^^^^^ help: change this to: `intent_id.as_bytes()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_borrow)]`
|
useless conversion to the same type: `ibc::core::channel::types::acknowledgement::AcknowledgementStatus`:
solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs#L208
error: useless conversion to the same type: `ibc::core::channel::types::acknowledgement::AcknowledgementStatus`
--> solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs:208:21
|
208 | / ibc::AcknowledgementStatus::error(
209 | | ibc::TokenTransferError::Other(
210 | | "Invalid memo".to_string(),
211 | | )
212 | | .into(),
213 | | )
214 | | .into(),
| |___________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
help: consider removing `.into()`
|
208 ~ ibc::AcknowledgementStatus::error(
209 + ibc::TokenTransferError::Other(
210 + "Invalid memo".to_string(),
211 + )
212 + .into(),
213 ~ ),
|
|
accessing first element with `ix_data.get(0)`:
solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs#L207
error: accessing first element with `ix_data.get(0)`
--> solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs:207:33
|
207 | let intent_id = ix_data.get(0).ok_or(
| ^^^^^^^^^^^^^^ help: try: `ix_data.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
= note: `-D clippy::get-first` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::get_first)]`
|
single-character string constant used as pattern:
solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs#L204
error: single-character string constant used as pattern
--> solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs:204:41
|
204 | let values = rest.split(",").collect::<Vec<&str>>();
| ^^^ help: consider using a `char`: `','`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
|
useless conversion to the same type: `ibc::core::channel::types::acknowledgement::AcknowledgementStatus`:
solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs#L191
error: useless conversion to the same type: `ibc::core::channel::types::acknowledgement::AcknowledgementStatus`
--> solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs:191:21
|
191 | / ibc::AcknowledgementStatus::error(
192 | | ibc::TokenTransferError::Other(
193 | | "Invalid memo".to_string(),
194 | | )
195 | | .into(),
196 | | )
197 | | .into(),
| |___________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
help: consider removing `.into()`
|
191 ~ ibc::AcknowledgementStatus::error(
192 + ibc::TokenTransferError::Other(
193 + "Invalid memo".to_string(),
194 + )
195 + .into(),
196 ~ ),
|
|
single-character string constant used as pattern:
solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs#L190
error: single-character string constant used as pattern
--> solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs:190:61
|
190 | let (accounts_size, rest) = memo.split_once(",").ok_or(
| ^^^ help: consider using a `char`: `','`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
= note: `-D clippy::single-char-pattern` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::single_char_pattern)]`
|
useless conversion to the same type: `ibc::core::channel::types::acknowledgement::AcknowledgementStatus`:
solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs#L175
error: useless conversion to the same type: `ibc::core::channel::types::acknowledgement::AcknowledgementStatus`
--> solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs:175:32
|
175 | return Err(ibc::AcknowledgementStatus::error(
| ________________________________^
176 | | ibc::TokenTransferError::PacketDataDeserialization
177 | | .into(),
178 | | )
179 | | .into());
| |___________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `-D clippy::useless-conversion` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::useless_conversion)]`
help: consider removing `.into()`
|
175 ~ return Err(ibc::AcknowledgementStatus::error(
176 + ibc::TokenTransferError::PacketDataDeserialization
177 + .into(),
178 ~ ));
|
|
Miscellaneous checks
Clippy had exited with the 101 exit code
|
Miscellaneous checks
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Miscellaneous checks
The following actions use a deprecated Node.js version and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|