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

[Enhancement] Macros for State.GetAll* #4551

Merged
merged 4 commits into from
Jul 17, 2024
Merged

Conversation

ruseinov
Copy link
Contributor

@ruseinov ruseinov commented Jul 17, 2024

Summary of changes

Changes introduced in this pull request:

  • Macros for VerifiedRegistryStateExt

Reference issue to close (if applicable)

Work on #4550

Other information and links

Change checklist

  • I have performed a self-review of my own code,
  • I have made corresponding changes to the documentation,
  • I have added tests that prove my fix is effective or that my feature works (if possible),
  • I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

@ruseinov ruseinov marked this pull request as ready for review July 17, 2024 13:49
@ruseinov ruseinov requested a review from a team as a code owner July 17, 2024 13:49
@ruseinov ruseinov requested review from lemmih and LesnyRumcajs and removed request for a team July 17, 2024 13:49
};
Ok(result)
}
}

#[macro_export]
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have to export these macros?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we don't - the macros have to be defined strictly above the code that uses them, which is inconvenient.

Copy link
Contributor

Choose a reason for hiding this comment

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

this exports the macro as a public item at the root of the crate. Does pub(crate) use list_all_inner below the macro work? Else I think moving the definition to the top of the file is the right thing to do

@ruseinov ruseinov requested a review from hanabi1224 July 17, 2024 13:56
};
Ok(result)
}
}

#[macro_export]
Copy link
Contributor

Choose a reason for hiding this comment

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

this exports the macro as a public item at the root of the crate. Does pub(crate) use list_all_inner below the macro work? Else I think moving the definition to the top of the file is the right thing to do

@ruseinov
Copy link
Contributor Author

this exports the macro as a public item at the root of the crate. Does pub(crate) use list_all_inner below the macro work? Else I think moving the definition to the top of the file is the right thing to do

Gotta export to use. Alright, let's move this to the top then :/

@ruseinov ruseinov requested a review from aatifsyed July 17, 2024 15:06
@ruseinov ruseinov added this pull request to the merge queue Jul 17, 2024
Merged via the queue into main with commit 54d8136 Jul 17, 2024
28 checks passed
@ruseinov ruseinov deleted the ru/enhancement/get-all-macros branch July 17, 2024 15:39
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