Skip to content

Conversation

topecongiro
Copy link
Contributor

This PR closes #1327.
Input:

fn foo() {
    let hash: &Fn(&&Block) -> u64 = &|block| -> u64 {
                                         let mut h = SpanlessHash::new(cx);
                                         h.hash_block(block);
                                         h.finish()
                                     };
}

Output:

fn foo() {
    let hash: &Fn(&&Block) -> u64 = &|block| -> u64 {
        let mut h = SpanlessHash::new(cx);
        h.hash_block(block);
        h.finish()
    };
}

@nrc nrc merged commit 9abe863 into rust-lang:master May 1, 2017
@nrc
Copy link
Member

nrc commented May 1, 2017

Looks good, thank you!

@topecongiro topecongiro deleted the unary-op branch June 16, 2017 00:20
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.

& etc causes excessive indentation
2 participants