Skip to content

Neutron client in pure rust #74

Neutron client in pure rust

Neutron client in pure rust #74

GitHub Actions / clippy succeeded Oct 3, 2024 in 0s

clippy

8 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 8
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 221 in crates/cli/src/handler/enclave_start.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`to_string` applied to a type that implements `Display` in `format!` args

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

Check warning on line 221 in crates/cli/src/handler/enclave_start.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

`to_string` applied to a type that implements `Display` in `format!` args

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

Check warning on line 200 in crates/utils/cw-client/src/grpc.rs

See this annotation in the file changed.

@github-actions 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/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

Check warning on line 197 in crates/utils/cw-client/src/grpc.rs

See this annotation in the file changed.

@github-actions 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/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

Check warning on line 132 in crates/utils/cw-client/src/grpc.rs

See this annotation in the file changed.

@github-actions 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/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

Check warning on line 200 in crates/utils/cw-client/src/grpc.rs

See this annotation in the file changed.

@github-actions 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/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

Check warning on line 197 in crates/utils/cw-client/src/grpc.rs

See this annotation in the file changed.

@github-actions 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/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

Check warning on line 132 in crates/utils/cw-client/src/grpc.rs

See this annotation in the file changed.

@github-actions 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/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