Convert `len() > 0` to `! is_empty()`
`cargo clippy` suggested to use `is_empty()` instead of `len() > 0`, because this doesn't require to calculate the whole length of the sequence. See: <https://rust-lang.github.io/rust-clippy/master/index.html#len_zero>
Please register or sign in to comment