Use `collect` instead of `FromIterator::from_iter`