Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Rustup to ea0dc9297283daff6486807f43e190b4eb561412 #1054

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
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