-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Formatter adding --
with multi-import statements
#684
Comments
After spending some time digging around on the formatter, it turns out that this issue probably comes from the fact that a single
In my opinion, this is not right. |
--
with multi-importsuse
statement with 2 imports creates 2 root nodes in the AST
use
statement with 2 imports creates 2 root nodes in the AST--
with multi-import statements
As explained by @mohammadfawaz:
We will have to find a way to fix the formatter without changing the AST generation. |
Minimal repro:
Output of
forc fmt --check
:The text was updated successfully, but these errors were encountered: