Skip to content

Store packets

Store packets #244

Triggered via pull request October 31, 2023 00:33
@dhruvjadhruvja
synchronize #64
store-packets
Status Failure
Total duration 12m 0s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

master.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`: solana/solana-ibc/programs/solana-ibc/src/lib.rs#L73
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` --> solana/solana-ibc/programs/solana-ibc/src/lib.rs:73:17 | 73 | / match msg { 74 | | MsgEnvelope::Packet(packet) => { 75 | | // store the packet if not exists 76 | | let mut inner_store = store.0.borrow_mut(); ... | 87 | | _ => (), 88 | | } | |_________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match = note: `-D clippy::single-match` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::single_match)]` help: try | 73 ~ if let MsgEnvelope::Packet(packet) = msg { 74 + // store the packet if not exists 75 + let mut inner_store = store.0.borrow_mut(); 76 + match inner_store 77 + .packets 78 + .0 79 + .iter() 80 + .find(|&pack| &packet == pack) 81 + { 82 + Some(_) => (), 83 + None => inner_store.packets.0.push(packet), 84 + } 85 + } |
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/