 Jörg SommerandJan Alexander Steffens (heftig)
|
846ec8f898
|
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>
|
2020-02-14 15:38:21 +01:00 |
|