Closed lnicola closed 3 years ago
r? @hug-dev r? @g2p
Just for my Rust knowledge, as I have never done that before, what is the advantage of returning an impl Iter<...> instead of let's say a Vec?
Not much, it simply avoids an allocation and better matches APIs like env::args()
. The caller can call .collect()
, but it might not need to.
Thanks, released and published.
Fixes #3