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

Support try (?) operator with prefixed space. #5595

Open
GreenBeard opened this issue Nov 7, 2022 · 0 comments
Open

Support try (?) operator with prefixed space. #5595

GreenBeard opened this issue Nov 7, 2022 · 0 comments

Comments

@GreenBeard
Copy link

I prefer the style of:

fn foo() {
  bar() ?;
  baz() ?.buzz() ?;
}

to

fn foo() {
  bar()?;
  baz()?.buzz()?;
}

and would like an option for this.

@ytmimi ytmimi mentioned this issue Mar 21, 2023
burdges added a commit to w3f/arkworks-algebra that referenced this issue Mar 21, 2023
rustfmt is wrong that f()? should be preferred over f() ?, as errors paths should often be highlighted, but nobody merged that fix yet, so whatever. 
rust-lang/rustfmt#5595
burdges added a commit to w3f/arkworks-algebra that referenced this issue Apr 23, 2023
rustfmt is wrong that f()? should be preferred over f() ?, as errors paths should often be highlighted, but nobody merged that fix yet, so whatever. 
rust-lang/rustfmt#5595
burdges added a commit to w3f/arkworks-algebra that referenced this issue Jun 11, 2023
rustfmt is wrong that f()? should be preferred over f() ?, as errors paths should often be highlighted, but nobody merged that fix yet, so whatever. 
rust-lang/rustfmt#5595
burdges added a commit to burdges/algebra that referenced this issue Sep 8, 2023
rustfmt is wrong that f()? should be preferred over f() ?, as errors paths should often be highlighted, but nobody merged that fix yet, so whatever. 
rust-lang/rustfmt#5595
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants