You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
```
warning: boolean to int conversion using if
--> crossbeam-channel/src/flavors/at.rs:137:9
|
137 | / if self.is_empty() {
138 | | 0
139 | | } else {
140 | | 1
141 | | }
| |_________^ help: replace with from: `usize::from(!self.is_empty())`
|
= note: `!self.is_empty() as usize` or `(!self.is_empty()).into()` can also be valid options
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if
= note: `#[warn(clippy::bool_to_int_with_if)]` on by default
warning: boolean to int conversion using if
--> crossbeam-channel/src/flavors/tick.rs:108:9
|
108 | / if self.is_empty() {
109 | | 0
110 | | } else {
111 | | 1
112 | | }
| |_________^ help: replace with from: `usize::from(!self.is_empty())`
|
= note: `!self.is_empty() as usize` or `(!self.is_empty()).into()` can also be valid options
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if
```
0 commit comments