Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Implement IntoIterator for Statuses#880

Merged
alexcrichton merged 1 commit into
rust-lang:masterfrom
schteve:master
Sep 12, 2022
Merged

Implement IntoIterator for Statuses#880
alexcrichton merged 1 commit into
rust-lang:masterfrom
schteve:master

Conversation

@schteve
Copy link
Copy Markdown
Contributor

@schteve schteve commented Sep 12, 2022

Implement IntoIterator for Statuses via the existing iter() method so we get that sweet for-loop syntax sugar.

let statuses: Statuses = repo.statuses(None).unwrap();
for status in &statuses {
    // Do something
}

@alexcrichton alexcrichton merged commit 49879e9 into rust-lang:master Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants