Skip to content
GitHub Actions / clippy failed Oct 2, 2024 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (2)

dex/router/src/events.rs|93 col 12| warning: length comparison to zero
--> dex/router/src/events.rs:93:12
|
93 | if payments_out.len() == 0 {
| ^^^^^^^^^^^^^^^^^^^^^^^ help: using is_empty is clearer and more explicit: payments_out.is_empty()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
= note: #[warn(clippy::len_zero)] on by default
dex/router/src/events.rs|93 col 12| warning: length comparison to zero
--> dex/router/src/events.rs:93:12
|
93 | if payments_out.len() == 0 {
| ^^^^^^^^^^^^^^^^^^^^^^^ help: using is_empty is clearer and more explicit: payments_out.is_empty()
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
= note: #[warn(clippy::len_zero)] on by default

Filtered Findings (0)

Annotations

Check warning on line 93 in dex/router/src/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] dex/router/src/events.rs#L93

warning: length comparison to zero
  --> dex/router/src/events.rs:93:12
   |
93 |         if payments_out.len() == 0 {
   |            ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `payments_out.is_empty()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
   = note: `#[warn(clippy::len_zero)]` on by default
Raw output
dex/router/src/events.rs:93:12:w:warning: length comparison to zero
  --> dex/router/src/events.rs:93:12
   |
93 |         if payments_out.len() == 0 {
   |            ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `payments_out.is_empty()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
   = note: `#[warn(clippy::len_zero)]` on by default


__END__

Check warning on line 93 in dex/router/src/events.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] dex/router/src/events.rs#L93

warning: length comparison to zero
  --> dex/router/src/events.rs:93:12
   |
93 |         if payments_out.len() == 0 {
   |            ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `payments_out.is_empty()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
   = note: `#[warn(clippy::len_zero)]` on by default
Raw output
dex/router/src/events.rs:93:12:w:warning: length comparison to zero
  --> dex/router/src/events.rs:93:12
   |
93 |         if payments_out.len() == 0 {
   |            ^^^^^^^^^^^^^^^^^^^^^^^ help: using `is_empty` is clearer and more explicit: `payments_out.is_empty()`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
   = note: `#[warn(clippy::len_zero)]` on by default


__END__