Skip to content
This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy failed Aug 17, 2023 in 0s

clippy

1 error

Details

Results

Message level Amount
Internal compiler error 0
Error 1
Warning 0
Note 0
Help 0

Versions

  • rustc 1.72.0-beta.8 (598a0a3cb 2023-08-12)
  • cargo 1.72.0-beta.8 (44b6be4bd 2023-08-03)
  • clippy 0.1.72 (598a0a3 2023-08-12)

Annotations

Check failure on line 30 in cw-orch/src/starship/mod.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

returning the result of a `let` binding from a block

error: returning the result of a `let` binding from a block
  --> cw-orch/src/starship/mod.rs:30:17
   |
26 | /                 let mnemonic = registry
27 | |                     .test_mnemonic(chain.chain_id.as_str())
28 | |                     .await
29 | |                     .unwrap();
   | |______________________________- unnecessary `let` binding
30 |                   mnemonic
   |                   ^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
   = note: `-D clippy::let-and-return` implied by `-D warnings`
help: return the expression directly
   |
26 ~                 
27 ~                 registry
28 +                     .test_mnemonic(chain.chain_id.as_str())
29 +                     .await
30 +                     .unwrap()
   |