Skip to content

Vim indentation broken with multiline function calls in struct definitions. #14195

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
mahkoh opened this issue May 14, 2014 · 1 comment
Closed

Comments

@mahkoh
Copy link
Contributor

mahkoh commented May 14, 2014

Consider the following code:

fn main() {
    let x = X {
        a: 1,
        b: fffff(1,
                 2),
        c: 1,
    };
    let _ = x;
}

Opening a new line while on the c-line puts the cursor here:

    let x = X {
        a: 1,
        b: fffff(1,
                 2),
        c: 1,
                 X
    };

cc @chris-morgan

@mahkoh
Copy link
Contributor Author

mahkoh commented Oct 4, 2014

Fixed.

@mahkoh mahkoh closed this as completed Oct 4, 2014
flip1995 pushed a commit to flip1995/rust that referenced this issue Feb 20, 2025
`mem::replace(opt, Some(v))` can be replaced by `opt.replace(v)`.

Close rust-lang#14195

changelog: [`mem_replace_option_with_some`]: new lint
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