Neutron client in pure rust #73
Annotations
10 warnings
`to_string` applied to a type that implements `Display` in `format!` args:
crates/cli/src/handler/enclave_start.rs#L221
warning: `to_string` applied to a type that implements `Display` in `format!` args
--> crates/cli/src/handler/enclave_start.rs:221:47
|
221 | .arg(format!("-Dchain_id={}", chain_id.to_string()))
| ^^^^^^^^^^^^ help: remove this
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
= note: `#[warn(clippy::to_string_in_format_args)]` on by default
|
`to_string` applied to a type that implements `Display` in `format!` args:
crates/cli/src/handler/enclave_start.rs#L221
warning: `to_string` applied to a type that implements `Display` in `format!` args
--> crates/cli/src/handler/enclave_start.rs:221:47
|
221 | .arg(format!("-Dchain_id={}", chain_id.to_string()))
| ^^^^^^^^^^^^ help: remove this
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#to_string_in_format_args
= note: `#[warn(clippy::to_string_in_format_args)]` on by default
|
this expression creates a reference which is immediately dereferenced by the compiler:
crates/utils/cw-client/src/grpc.rs#L200
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> crates/utils/cw-client/src/grpc.rs:200:35
|
200 | 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
|
useless conversion to the same type: `cosmrs::crypto::PublicKey`:
crates/utils/cw-client/src/grpc.rs#L197
warning: useless conversion to the same type: `cosmrs::crypto::PublicKey`
--> crates/utils/cw-client/src/grpc.rs:197:54
|
197 | 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
|
this expression creates a reference which is immediately dereferenced by the compiler:
crates/utils/cw-client/src/grpc.rs#L132
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> crates/utils/cw-client/src/grpc.rs:132:13
|
132 | &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
|
unused imports: `Deserialize` and `Serialize`:
crates/utils/cw-client/src/lib.rs#L5
warning: unused imports: `Deserialize` and `Serialize`
--> crates/utils/cw-client/src/lib.rs:5:35
|
5 | use serde::{de::DeserializeOwned, Deserialize, Serialize};
| ^^^^^^^^^^^ ^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
this expression creates a reference which is immediately dereferenced by the compiler:
crates/utils/cw-client/src/grpc.rs#L200
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> crates/utils/cw-client/src/grpc.rs:200:35
|
200 | 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
|
useless conversion to the same type: `cosmrs::crypto::PublicKey`:
crates/utils/cw-client/src/grpc.rs#L197
warning: useless conversion to the same type: `cosmrs::crypto::PublicKey`
--> crates/utils/cw-client/src/grpc.rs:197:54
|
197 | 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
|
this expression creates a reference which is immediately dereferenced by the compiler:
crates/utils/cw-client/src/grpc.rs#L132
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> crates/utils/cw-client/src/grpc.rs:132:13
|
132 | &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
|
unused imports: `Deserialize` and `Serialize`:
crates/utils/cw-client/src/lib.rs#L5
warning: unused imports: `Deserialize` and `Serialize`
--> crates/utils/cw-client/src/lib.rs:5:35
|
5 | use serde::{de::DeserializeOwned, Deserialize, Serialize};
| ^^^^^^^^^^^ ^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|