Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(fmt): surround with returns in fn with format disabled #8582

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

grandizzy
Copy link
Collaborator

Motivation

Closes #7920

Solution

  • if fn with returns format is disabled, surround returned params in returns () to produce valid Solidity

@grandizzy grandizzy marked this pull request as ready for review August 1, 2024 13:06
@grandizzy grandizzy enabled auto-merge (squash) August 1, 2024 13:48
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

nice

@grandizzy grandizzy merged commit 0951fb5 into foundry-rs:master Aug 1, 2024
20 checks passed
benwjhack pushed a commit to CompassLabs/foundry-test that referenced this pull request Sep 11, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: forge fmt can't handle // forgefmt: disable-next-line with an inline comment on the next line
2 participants