2 Checks for if-else that could be written using either `bool::then` or `bool::then_some`.
5 Looks a little redundant. Using `bool::then` is more concise and incurs no loss of clarity.
6 For simple calculations and known values, use `bool::then_some`, which is eagerly evaluated
7 in comparison to `bool::then`.
11 let a = if v.is_empty() {
22 let a = v.is_empty().then(|| {