Skip to content

Rustup to ea0dc9297283daff6486807f43e190b4eb561412 #1054

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 3 commits into from
Jul 2, 2016
Merged

Rustup to ea0dc9297283daff6486807f43e190b4eb561412 #1054

merged 3 commits into from
Jul 2, 2016

Conversation

mcarton
Copy link
Member

@mcarton mcarton commented Jun 28, 2016

For the next nightly. Don't bother @travis.
Ref rust-lang/rust#34424.

fn expr_block(block: &ast::Block) -> Option<&ast::Expr> {
let mut it = block.stmts.iter();

if let (Some(stmt), None) = (it.next(), it.next()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this pattern

@mcarton mcarton merged commit d243d68 into master Jul 2, 2016
@mcarton mcarton deleted the rustup branch July 2, 2016 14:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants