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

refactor(model)!: revert moving snowflake to model #1471

Merged
merged 3 commits into from
Jan 22, 2022
Merged

refactor(model)!: revert moving snowflake to model #1471

merged 3 commits into from
Jan 22, 2022

Conversation

zeylahellyer
Copy link
Member

Revert "refactor: add snowflake getters to Id<T: Snowflake> (#1332)", effectively moving the Snowflake trait back to util. The Snowflake trait isn't a model, it's a helper for some computations; the model crate otherwise has no other traits other than this one, and so it's unprecedented and its addition was a mistake.

This reverts commit 540ee9a.

Revert "refactor: add snowflake getters to `Id<T: Snowflake>` (#1332)",
effectively moving the `Snowflake` trait back to `util`. The Snowflake
trait isn't a model, it's a helper for some computations; the model
crate otherwise has no other traits other than this one, and so it's
unprecedented and its addition was a mistake.

This reverts commit 540ee9a.
@github-actions github-actions bot added c-model Affects the model crate c-util Affects the util crate m-breaking change Breaks the public API. t-refactor Refactors APIs or code. labels Jan 19, 2022
@zeylahellyer zeylahellyer added t-refactor Refactors APIs or code. and removed t-refactor Refactors APIs or code. labels Jan 19, 2022
Signed-off-by: Zeyla Hellyer <[email protected]>
7596ff
7596ff previously requested changes Jan 20, 2022
util/src/lib.rs Outdated Show resolved Hide resolved
util/src/snowflake.rs Show resolved Hide resolved
@7596ff 7596ff self-assigned this Jan 21, 2022
@7596ff 7596ff dismissed their stale review January 21, 2022 18:33

addressed

@7596ff 7596ff requested a review from Erk- January 21, 2022 18:33
Copy link
Member

@Erk- Erk- left a comment

Choose a reason for hiding this comment

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

This looks fine, though make it clear in the commit message that it does a bit on top of just reverting the commit

@7596ff 7596ff merged commit e3e16e2 into twilight-rs:next Jan 22, 2022
7596ff added a commit that referenced this pull request Jan 23, 2022
Changes

All types and method signatures have been updated to use the new `Id<T>`
syntax ([#1260] - [@zeylahellyer]).

The MSRV has been updated to 1.57 ([#1402] - [@zeylahellyer]).

The Rust edition has been updated to 2021 ([#1412] - [@vilgotf]).

Fixes

Missing ID marker implementations have been added ([#1471] -
[@zeylahellyer]).

[#1260]: #1260
[#1402]: #1402
[#1412]: #1412
[#1471]: #1471

[@vilgotf]: https://github.com/vilgotf
[@zeylahellyer]: https://github.com/zeylahellyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-model Affects the model crate c-util Affects the util crate m-breaking change Breaks the public API. t-refactor Refactors APIs or code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants