Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

ci tests

ci tests #769

GitHub Actions / clippy failed Feb 4, 2024 in 0s

clippy

2 errors

Details

Results

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

Versions

  • rustc 1.77.0-nightly (25f8d01fd 2024-01-18)
  • cargo 1.77.0-nightly (1ae631085 2024-01-17)
  • clippy 0.1.77 (25f8d01 2024-01-18)

Annotations

Check failure on line 273 in sdk/substrate/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this if-then-else expression returns a bool literal

error: this if-then-else expression returns a bool literal
   --> sdk/substrate/src/lib.rs:269:21
    |
269 |               farmer: if self.role == Role::Authority {
    |  _____________________^
270 | |                 true
271 | |             } else {
272 | |                 false
273 | |             }
    | |_____________^ help: you can reduce it to: `self.role == Role::Authority`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool
    = note: `-D clippy::needless-bool` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::needless_bool)]`

Check failure on line 273 in sdk/substrate/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this if-then-else expression returns a bool literal

error: this if-then-else expression returns a bool literal
   --> sdk/substrate/src/lib.rs:269:21
    |
269 |               farmer: if self.role == Role::Authority {
    |  _____________________^
270 | |                 true
271 | |             } else {
272 | |                 false
273 | |             }
    | |_____________^ help: you can reduce it to: `self.role == Role::Authority`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool
    = note: `-D clippy::needless-bool` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::needless_bool)]`