Closed a-0-dev closed 1 year ago
CLA Assistant Lite bot:
Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.
I have read the CLA Document and I hereby sign the CLA
Philip (a-0) seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You can retrigger this bot by commenting recheck in this Pull Request
This is unfortunate, I will not disclose my mail address used for this GitHub account just to sign the CLA. I opened issue #207 instead.
This is a tiny quality-of-life pull request for using
NamedRows
.Before, one first had peel the
rows
member ofNamedRows
out of the struct to then callinto_iter()
, which is not necessary since the rows are the only reasonable thing to iterate through for aNamedRows
object.So, this PR implements the standard trait of
IntoIterator
forNamedRows
directly, reducing something likerows.rows.into_iter()
torows.into_iter()
.Since iterating through rows is very common when handling any query result, this would improve the readability and brevity of code significantly for me (and potentially others). If you have any questions, feel free to comment :)