Fix CI #17
clippy-all-features
5 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 5 |
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 69 in crates/relayer/src/chain.rs
github-actions / clippy-all-features
redundant pattern matching, consider using `is_err()`
error: redundant pattern matching, consider using `is_err()`
--> crates/relayer/src/chain.rs:69:17
|
69 | assert!(matches!(parse("hello-world"), Err(_)));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `parse("hello-world").is_err()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
= note: `#[deny(clippy::redundant_pattern_matching)]` implied by `#[deny(warnings)]`
Check failure on line 572 in crates/relayer/src/chain/cosmos.rs
github-actions / clippy-all-features
this `if` branch is empty
error: this `if` branch is empty
--> crates/relayer/src/chain/cosmos.rs:572:9
|
572 | if prove {}
| ^^^^^^^^^^^ help: you can remove it
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_if
= note: `#[deny(clippy::needless_if)]` implied by `#[deny(warnings)]`
Check failure on line 572 in crates/relayer/src/chain/cosmos.rs
github-actions / clippy-all-features
this `if` branch is empty
error: this `if` branch is empty
--> crates/relayer/src/chain/cosmos.rs:572:9
|
572 | if prove {}
| ^^^^^^^^^^^ help: you can remove it
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_if
= note: `#[deny(clippy::needless_if)]` implied by `#[deny(warnings)]`
Check failure on line 764 in crates/relayer/src/error.rs
github-actions / clippy-all-features
unnecessary hashes around raw string literal
error: unnecessary hashes around raw string literal
--> crates/relayer/src/error.rs:764:20
|
764 | Regex::new(r#"account sequence mismatch, expected (?P<expected>\d+), got (?P<got>\d+)"#)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `r"account sequence mismatch, expected (?P<expected>\d+), got (?P<got>\d+)"`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes
note: the lint level is defined here
--> crates/relayer/src/lib.rs:3:5
|
3 | warnings,
| ^^^^^^^^
= note: `#[deny(clippy::needless_raw_string_hashes)]` implied by `#[deny(warnings)]`
Check failure on line 764 in crates/relayer/src/error.rs
github-actions / clippy-all-features
unnecessary hashes around raw string literal
error: unnecessary hashes around raw string literal
--> crates/relayer/src/error.rs:764:20
|
764 | Regex::new(r#"account sequence mismatch, expected (?P<expected>\d+), got (?P<got>\d+)"#)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `r"account sequence mismatch, expected (?P<expected>\d+), got (?P<got>\d+)"`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_raw_string_hashes
note: the lint level is defined here
--> crates/relayer/src/lib.rs:3:5
|
3 | warnings,
| ^^^^^^^^
= note: `#[deny(clippy::needless_raw_string_hashes)]` implied by `#[deny(warnings)]`