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

bug: destructuring formatting is off #5032

Closed
delaaxe opened this issue Feb 7, 2024 · 2 comments · Fixed by #5062
Closed

bug: destructuring formatting is off #5032

delaaxe opened this issue Feb 7, 2024 · 2 comments · Fixed by #5062
Labels
bug Something isn't working

Comments

@delaaxe
Copy link
Contributor

delaaxe commented Feb 7, 2024

-        let MyStruct{prop1, prop2 } = my_struct;
+        let MyStruct { prop1, prop2 } = my_struct;

Just checking if this is an easy fix or if it requires the advanced formatter?

@delaaxe delaaxe added the bug Something isn't working label Feb 7, 2024
@orizi
Copy link
Collaborator

orizi commented Feb 13, 2024

which version are you on?
because it seems fine on main 2.5.3 and 2.6.0-rc.0.

@delaaxe
Copy link
Contributor Author

delaaxe commented Feb 13, 2024

Here's a real world example on 2.5.3:

        let AssetConfig{total_nominal_debt, scale, .. } = asset_config;

Should be

        let AssetConfig { total_nominal_debt, scale, .. } = asset_config;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants