We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When you run rustfmt on a code with question mark, it duplicate symbols after it. For example, this:
#![feature(question_mark)] fn foo() -> Result<i32, &'static str> { Ok(3) } fn bar() -> Result<i32, &'static str> { Ok(foo()?.pow(2)) // <- one dot } fn main() { println!("{:?}", bar()); }
Will become this:
#![feature(question_mark)] fn foo() -> Result<i32, &'static str> { Ok(3) } fn bar() -> Result<i32, &'static str> { Ok(foo()?..pow(2)) // <- two dots } fn main() { println!("{:?}", bar()); }
Life example: https://is.gd/jo9cQ9
The text was updated successfully, but these errors were encountered:
Closed by #893.
Sorry, something went wrong.
No branches or pull requests
When you run rustfmt on a code with question mark, it duplicate symbols after it. For example, this:
Will become this:
Life example: https://is.gd/jo9cQ9
The text was updated successfully, but these errors were encountered: