Skip to content

Conversation

ANtlord
Copy link

@ANtlord ANtlord commented Jul 25, 2021

Let's consider this case

fn walk() {
    let positions = [
        [0.0, 0.0, 0.0],
        [2.0, 5.0, -15.0],
        [-1.5, -2.2, -2.5],
        [-3.8, -2.0, -12.3],
    ];

        let speed = 123;
}

As you might see let speed = 123 stays in the wrong position because it's treated by cindent called in the end of the function. The patch makes it this way

fn walk() {
    let positions = [
        [0.0, 0.0, 0.0],
        [2.0, 5.0, -15.0],
        [-1.5, -2.2, -2.5],
        [-3.8, -2.0, -12.3],
    ];

    let speed = 123;
}

@rust-highfive
Copy link

r? @da-x

(rust-highfive has picked a reviewer for you, use r? to override)

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.

3 participants