Neutron client in pure rust #60
clippy
7 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 7 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.81.0 (eeb90cda1 2024-09-04)
- cargo 1.81.0 (2dbb1af80 2024-08-20)
- clippy 0.1.81 (eeb90cd 2024-09-04)
Annotations
Check warning on line 186 in crates/cli/src/handler/enclave_start.rs
github-actions / clippy
this function has too many arguments (8/7)
warning: this function has too many arguments (8/7)
--> crates/cli/src/handler/enclave_start.rs:177:1
|
177 | / async fn gramine_manifest(
178 | | trusted_height: &str,
179 | | trusted_hash: &str,
180 | | quartz_dir: &Path,
... |
185 | | node_url: &str,
186 | | ) -> Result<(), Error> {
| |______________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
Check warning on line 186 in crates/cli/src/handler/enclave_start.rs
github-actions / clippy
this function has too many arguments (8/7)
warning: this function has too many arguments (8/7)
--> crates/cli/src/handler/enclave_start.rs:177:1
|
177 | / async fn gramine_manifest(
178 | | trusted_height: &str,
179 | | trusted_hash: &str,
180 | | quartz_dir: &Path,
... |
185 | | node_url: &str,
186 | | ) -> Result<(), Error> {
| |______________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
Check warning on line 183 in crates/utils/cw-client/src/neutrond.rs
github-actions / clippy
useless conversion to the same type: `cosmrs::crypto::PublicKey`
warning: useless conversion to the same type: `cosmrs::crypto::PublicKey`
--> crates/utils/cw-client/src/neutrond.rs:183:54
|
183 | let signer_info = SignerInfo::single_direct(Some(tm_pubkey.into()), sequence_number);
| ^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `tm_pubkey`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
Check warning on line 124 in crates/utils/cw-client/src/neutrond.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> crates/utils/cw-client/src/neutrond.rs:124:13
|
124 | &chain_id,
| ^^^^^^^^^ help: change this to: `chain_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
Check warning on line 186 in crates/utils/cw-client/src/neutrond.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> crates/utils/cw-client/src/neutrond.rs:186:35
|
186 | let tx_signed = sign_doc.sign(&secret)?;
| ^^^^^^^ help: change this to: `secret`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
Check warning on line 183 in crates/utils/cw-client/src/neutrond.rs
github-actions / clippy
useless conversion to the same type: `cosmrs::crypto::PublicKey`
warning: useless conversion to the same type: `cosmrs::crypto::PublicKey`
--> crates/utils/cw-client/src/neutrond.rs:183:54
|
183 | let signer_info = SignerInfo::single_direct(Some(tm_pubkey.into()), sequence_number);
| ^^^^^^^^^^^^^^^^ help: consider removing `.into()`: `tm_pubkey`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
= note: `#[warn(clippy::useless_conversion)]` on by default
Check warning on line 124 in crates/utils/cw-client/src/neutrond.rs
github-actions / clippy
this expression creates a reference which is immediately dereferenced by the compiler
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> crates/utils/cw-client/src/neutrond.rs:124:13
|
124 | &chain_id,
| ^^^^^^^^^ help: change this to: `chain_id`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default