### What it does Instead of using an if statement to convert a bool to an int, this lint suggests using a coercion or a `from()` function. ### Lint Name bool_to_int_with_if ### Category style ### Advantage - Makes code more concise - Makes this conversion more discoverable ### Drawbacks - None ### Example ```rust if condition { 1_i64 } else { 0 } ``` Could be written as: ```rust i64::from(condition) ``` or ```rust condition as i64 ``` <!-- TRIAGEBOT_START --> <!-- TRIAGEBOT_ASSIGN_START --> <!-- TRIAGEBOT_ASSIGN_DATA_START$${"user":"jst-r"}$$TRIAGEBOT_ASSIGN_DATA_END --> <!-- TRIAGEBOT_ASSIGN_END --> <!-- TRIAGEBOT_END -->