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

Release v0.2.0-rc1

Release v0.2.0-rc1 #72

GitHub Actions / clippy succeeded Jan 21, 2024 in 0s

clippy

6 warnings

Details

Results

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

Versions

  • rustc 1.77.0-nightly (88189a71e 2024-01-19)
  • cargo 1.77.0-nightly (1ae631085 2024-01-17)
  • clippy 0.1.77 (88189a7 2024-01-19)

Annotations

Check warning on line 560 in src/engine/rust.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this if-then-else expression returns a bool literal

warning: this if-then-else expression returns a bool literal
   --> src/engine/rust.rs:560:26
    |
560 |         let perform_bitworkr = if ft.mint_bitworkr.is_some() { true } else { false };
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `ft.mint_bitworkr.is_some()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool
    = note: `#[warn(clippy::needless_bool)]` on by default

Check warning on line 560 in src/engine/rust.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this if-then-else expression returns a bool literal

warning: this if-then-else expression returns a bool literal
   --> src/engine/rust.rs:560:26
    |
560 |         let perform_bitworkr = if ft.mint_bitworkr.is_some() { true } else { false };
    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: you can reduce it to: `ft.mint_bitworkr.is_some()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_bool
    = note: `#[warn(clippy::needless_bool)]` on by default

Check warning on line 485 in src/engine/rust.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant pattern matching, consider using `is_err()`

warning: redundant pattern matching, consider using `is_err()`
   --> src/engine/rust.rs:485:11
    |
485 |             if let Err(_) = self.api.broadcast(raw_tx.clone()).await {
    |             -------^^^^^^------------------------------------------- help: try: `if (self.api.broadcast(raw_tx.clone()).await).is_err()`
    |
    = note: this will change drop order of the result, as well as all temporaries
    = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching

Check warning on line 485 in src/engine/rust.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant pattern matching, consider using `is_err()`

warning: redundant pattern matching, consider using `is_err()`
   --> src/engine/rust.rs:485:11
    |
485 |             if let Err(_) = self.api.broadcast(raw_tx.clone()).await {
    |             -------^^^^^^------------------------------------------- help: try: `if (self.api.broadcast(raw_tx.clone()).await).is_err()`
    |
    = note: this will change drop order of the result, as well as all temporaries
    = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching

Check warning on line 236 in src/engine/rust.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant pattern matching, consider using `is_err()`

warning: redundant pattern matching, consider using `is_err()`
   --> src/engine/rust.rs:236:11
    |
236 |             if let Err(_) = self.api.broadcast(raw_tx.clone()).await {
    |             -------^^^^^^------------------------------------------- help: try: `if (self.api.broadcast(raw_tx.clone()).await).is_err()`
    |
    = note: this will change drop order of the result, as well as all temporaries
    = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
    = note: `#[warn(clippy::redundant_pattern_matching)]` on by default

Check warning on line 236 in src/engine/rust.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

redundant pattern matching, consider using `is_err()`

warning: redundant pattern matching, consider using `is_err()`
   --> src/engine/rust.rs:236:11
    |
236 |             if let Err(_) = self.api.broadcast(raw_tx.clone()).await {
    |             -------^^^^^^------------------------------------------- help: try: `if (self.api.broadcast(raw_tx.clone()).await).is_err()`
    |
    = note: this will change drop order of the result, as well as all temporaries
    = note: add `#[allow(clippy::redundant_pattern_matching)]` if this is important
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pattern_matching
    = note: `#[warn(clippy::redundant_pattern_matching)]` on by default