Skip to content

Fix new clippy warnings on Rust 1.74

Sign in for the full log view
GitHub Actions / clippy-all-features failed Oct 5, 2023 in 0s

clippy-all-features

2 errors

Details

Results

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

Versions

  • rustc 1.73.0 (cc66ad468 2023-10-03)
  • cargo 1.73.0 (9c4383fb5 2023-08-26)
  • clippy 0.1.73 (cc66ad4 2023-10-03)

Annotations

Check failure on line 438 in crates/relayer-cli/src/commands/tx/client.rs

See this annotation in the file changed.

@github-actions github-actions / clippy-all-features

unnecessary parentheses around block return value

error: unnecessary parentheses around block return value
   --> crates/relayer-cli/src/commands/tx/client.rs:438:17
    |
438 |                 (self.reference_chain_id != chain.id
    |                 ^
439 |                     && (self.host_chain_id.is_none()
440 |                         || self.host_chain_id == Some(chain.id.clone())))
    |                                                                         ^
    |
    = note: `-D unused-parens` implied by `-D warnings`
help: remove these parentheses
    |
438 ~                 self.reference_chain_id != chain.id
439 |                     && (self.host_chain_id.is_none()
440 ~                         || self.host_chain_id == Some(chain.id.clone()))
    |

Check failure on line 438 in crates/relayer-cli/src/commands/tx/client.rs

See this annotation in the file changed.

@github-actions github-actions / clippy-all-features

unnecessary parentheses around block return value

error: unnecessary parentheses around block return value
   --> crates/relayer-cli/src/commands/tx/client.rs:438:17
    |
438 |                 (self.reference_chain_id != chain.id
    |                 ^
439 |                     && (self.host_chain_id.is_none()
440 |                         || self.host_chain_id == Some(chain.id.clone())))
    |                                                                         ^
    |
    = note: `-D unused-parens` implied by `-D warnings`
help: remove these parentheses
    |
438 ~                 self.reference_chain_id != chain.id
439 |                     && (self.host_chain_id.is_none()
440 ~                         || self.host_chain_id == Some(chain.id.clone()))
    |