Skip to content

blocks and closures in method chains are visually indented #1329

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

Closed
nrc opened this issue Feb 22, 2017 · 2 comments
Closed

blocks and closures in method chains are visually indented #1329

nrc opened this issue Feb 22, 2017 · 2 comments

Comments

@nrc
Copy link
Member

nrc commented Feb 22, 2017

Which can cause orphans lower in the chain. E.g.,

    aaaaaaaaaaaaaaaa.map(|x| {
                            x += 1;
                            x
                        })
        .filter

The tricky thing here is that we do want to visually indent arguments to methods outside chains

@SamWhited
Copy link

Something very similar happens with multi-line macro invocations, although I'm not sure if this is the same issue so I'll paste it here and can move it to a new issue if not:

    TokenStream::from_str(quote!{
        #deserialized
    }
            .as_str())
        .unwrap()

Playground

@topecongiro
Copy link
Contributor

Closed via #1604.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants