All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
.filter(..).next()
.filter(..).next() is equivalent to .find(..). Prefer .find(..) for readability.
.find(..)
vec.iter().filter(|x| x != 2).next();
vec.iter().find(|x| x != 2);
.find()