1.7.4-namada CI #73
guide-templates.yaml
on: pull_request
template-checker
9m 30s
Annotations
6 errors and 5 warnings
accessing first element with `ics23_specs.get(0)`:
crates/relayer-types/src/core/ics23_commitment/merkle.rs#L142
error: accessing first element with `ics23_specs.get(0)`
--> crates/relayer-types/src/core/ics23_commitment/merkle.rs:142:20
|
142 | let spec = ics23_specs.get(0).ok_or_else(Error::invalid_merkle_proof)?;
| ^^^^^^^^^^^^^^^^^^ help: try: `ics23_specs.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
|
accessing first element with `self.proofs.get(0)`:
crates/relayer-types/src/core/ics23_commitment/merkle.rs#L141
error: accessing first element with `self.proofs.get(0)`
--> crates/relayer-types/src/core/ics23_commitment/merkle.rs:141:21
|
141 | let proof = self.proofs.get(0).ok_or_else(Error::invalid_merkle_proof)?;
| ^^^^^^^^^^^^^^^^^^ help: try: `self.proofs.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
|
accessing first element with `block_events
.get(key)
.ok_or_else(|| Error::event(format!("attribute not found for key: {key}")))?.get(0)`:
crates/relayer-types/src/applications/ics31_icq/events.rs#L101
error: accessing first element with `block_events
.get(key)
.ok_or_else(|| Error::event(format!("attribute not found for key: {key}")))?.get(0)`
--> crates/relayer-types/src/applications/ics31_icq/events.rs:101:15
|
101 | let res = block_events
| _______________^
102 | | .get(key)
103 | | .ok_or_else(|| Error::event(format!("attribute not found for key: {key}")))?
104 | | .get(0)
| |_______________^
|
= 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)]`
help: try
|
101 ~ let res = block_events
102 + .get(key)
103 + .ok_or_else(|| Error::event(format!("attribute not found for key: {key}")))?.first()
|
|
accessing first element with `ics23_specs.get(0)`:
crates/relayer-types/src/core/ics23_commitment/merkle.rs#L142
error: accessing first element with `ics23_specs.get(0)`
--> crates/relayer-types/src/core/ics23_commitment/merkle.rs:142:20
|
142 | let spec = ics23_specs.get(0).ok_or_else(Error::invalid_merkle_proof)?;
| ^^^^^^^^^^^^^^^^^^ help: try: `ics23_specs.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
|
accessing first element with `self.proofs.get(0)`:
crates/relayer-types/src/core/ics23_commitment/merkle.rs#L141
error: accessing first element with `self.proofs.get(0)`
--> crates/relayer-types/src/core/ics23_commitment/merkle.rs:141:21
|
141 | let proof = self.proofs.get(0).ok_or_else(Error::invalid_merkle_proof)?;
| ^^^^^^^^^^^^^^^^^^ help: try: `self.proofs.first()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#get_first
|
accessing first element with `block_events
.get(key)
.ok_or_else(|| Error::event(format!("attribute not found for key: {key}")))?.get(0)`:
crates/relayer-types/src/applications/ics31_icq/events.rs#L101
error: accessing first element with `block_events
.get(key)
.ok_or_else(|| Error::event(format!("attribute not found for key: {key}")))?.get(0)`
--> crates/relayer-types/src/applications/ics31_icq/events.rs:101:15
|
101 | let res = block_events
| _______________^
102 | | .get(key)
103 | | .ok_or_else(|| Error::event(format!("attribute not found for key: {key}")))?
104 | | .get(0)
| |_______________^
|
= 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)]`
help: try
|
101 ~ let res = block_events
102 + .get(key)
103 + .ok_or_else(|| Error::event(format!("attribute not found for key: {key}")))?.first()
|
|
template-checker
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
template-checker
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
template-checker
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
template-checker
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
template-checker
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|