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

[stdlib] Formats MoveStdlib package 1/N #19461

Merged
merged 4 commits into from
Sep 20, 2024
Merged

Conversation

damirka
Copy link
Contributor

@damirka damirka commented Sep 20, 2024

Description

Uses module label in the MoveStdlib, runs the current build of the formatter on the code.

Test plan

All tests must pass, no snapshot regen should be required.


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

Copy link

vercel bot commented Sep 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 6:46pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Sep 20, 2024 6:46pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Sep 20, 2024 6:46pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Sep 20, 2024 6:46pm

Copy link
Contributor

@amnn amnn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable!

@damirka damirka changed the title [stdlib] Formats MoveStdlib package [stdlib] Formats MoveStdlib package 1/N Sep 20, 2024
Copy link
Contributor

@tnowacki tnowacki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fabulous! My eyes thank you

bytes == &b"bool" ||
module std::type_name;

use std::{address, ascii::{Self, String}};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure I like the use grouping here. Strong feelings? If not, maybe revert for this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's what formatter does these days.

Comment on lines 132 to 134
i = i + 1;
i
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this auto formatted? If so, its a good bug to fix IMO :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ty!

@damirka damirka merged commit 0c3ec2d into main Sep 20, 2024
47 of 48 checks passed
@damirka damirka deleted the ds/move-stdlib-formatting branch September 20, 2024 20:13
Copy link
Contributor

@cgswords cgswords left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

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

Successfully merging this pull request may close these issues.

4 participants