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

Avoid duplication in ID module #3024

Merged
merged 1 commit into from
Nov 11, 2024
Merged

Conversation

GnomedDev
Copy link
Member

This PR:

  • Moves the #[repr(packed)] into an InnerId, to avoid duplicating said attribute and to open the door for casting &Id to &Id in future.
  • Moves the snowflake serde module into just InnerId.
  • Generates the ID newtypes via the macro, cleaning up the module significantly

There should be no publicly facing difference for this, purely internal changes.

@github-actions github-actions bot added the model Related to the `model` module. label Nov 11, 2024
@arqunis arqunis added the enhancement An improvement to Serenity. label Nov 11, 2024
@GnomedDev GnomedDev merged commit 57f66f7 into serenity-rs:current Nov 11, 2024
22 checks passed
@GnomedDev GnomedDev deleted the smaller-id branch November 11, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement to Serenity. model Related to the `model` module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants