Skip to content

V3.1 audit fixes

V3.1 audit fixes #917

GitHub Actions / clippy failed Nov 21, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (2)

common/token-module/src/lib.rs|243 col 13| warning: equality checks against false can be replaced by a negation
--> common/token-module/src/lib.rs:243:13
|
243 | self.supply_mint_burn_initialized(token_id).get() == false,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: !self.supply_mint_burn_initialized(token_id).get()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
= note: #[warn(clippy::bool_comparison)] on by default
common/token-module/src/lib.rs|243 col 13| warning: equality checks against false can be replaced by a negation
--> common/token-module/src/lib.rs:243:13
|
243 | self.supply_mint_burn_initialized(token_id).get() == false,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: !self.supply_mint_burn_initialized(token_id).get()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
= note: #[warn(clippy::bool_comparison)] on by default

Filtered Findings (0)

Annotations

Check warning on line 243 in common/token-module/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] common/token-module/src/lib.rs#L243

warning: equality checks against false can be replaced by a negation
   --> common/token-module/src/lib.rs:243:13
    |
243 |             self.supply_mint_burn_initialized(token_id).get() == false,
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!self.supply_mint_burn_initialized(token_id).get()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
    = note: `#[warn(clippy::bool_comparison)]` on by default
Raw output
common/token-module/src/lib.rs:243:13:w:warning: equality checks against false can be replaced by a negation
   --> common/token-module/src/lib.rs:243:13
    |
243 |             self.supply_mint_burn_initialized(token_id).get() == false,
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!self.supply_mint_burn_initialized(token_id).get()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
    = note: `#[warn(clippy::bool_comparison)]` on by default


__END__

Check warning on line 243 in common/token-module/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] common/token-module/src/lib.rs#L243

warning: equality checks against false can be replaced by a negation
   --> common/token-module/src/lib.rs:243:13
    |
243 |             self.supply_mint_burn_initialized(token_id).get() == false,
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!self.supply_mint_burn_initialized(token_id).get()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
    = note: `#[warn(clippy::bool_comparison)]` on by default
Raw output
common/token-module/src/lib.rs:243:13:w:warning: equality checks against false can be replaced by a negation
   --> common/token-module/src/lib.rs:243:13
    |
243 |             self.supply_mint_burn_initialized(token_id).get() == false,
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `!self.supply_mint_burn_initialized(token_id).get()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
    = note: `#[warn(clippy::bool_comparison)]` on by default


__END__