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

indent-method-chain fails to indent in this case #37

Closed
nikomatsakis opened this issue Feb 15, 2015 · 1 comment
Closed

indent-method-chain fails to indent in this case #37

nikomatsakis opened this issue Feb 15, 2015 · 1 comment

Comments

@nikomatsakis
Copy link
Contributor

    let llargs: Vec<_> =
        input_tys.iter()
                 .enumerate()
                 .map(|(i, _)| get_param(fcx.llfn, fcx.arg_pos(i+1) as u32))
                 .collect();

indents for me as

    let llargs: Vec<_> =
        input_tys.iter()
                 .enumerate()
                 .map(|(i, _)| get_param(fcx.llfn, fcx.arg_pos(i+1) as u32))
             .collect();

it also occurs to me that the impl will fail to indent properly if there is a // ... comment at the end of the previous line.

@nikomatsakis
Copy link
Contributor Author

nm, wfm. I think I was using an outdated emacs session.

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

No branches or pull requests

1 participant