Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Discussion #325 (comment). Some([]) (empty vec) is a possible state from the type signature `Option<Vec<String>>` the state of Some/None is ambiguous without more information from the function. This code is easier to accidentally use the wrong logic in the consumer, but the correct implementation checks the direct properties we desire instead of relying on internal implementation of a function. We could alternatively introduce a non-empty vector, there are several crates that provide this, but it's more overhead that needed here.
- Loading branch information