Skip to content

indent of code block in multi-line iterator chain does not match for #126

Open
@nikomatsakis

Description

@nikomatsakis

This is probably a consequence of the code which tries to line up . in call chains, but the following example indents oddly for me:

fn main() {
    for x in foo.iter()
                .map(|x| x * 2) {
                    let y = 22; // I expect this to be aligned with the `for`!
                }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions