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

Simplify type bounds on Setting, not always Eq #77

Merged

Conversation

waywardmonkeys
Copy link
Collaborator

This makes swash::Setting more like skrifa::setting::Setting.

It is only Eq when the underlying type is Eq, so not for Setting<f32>.

It doesn't need to always state that it is Copy, so only state that when needed.

The impl of PartialEq can be derived.

This makes `swash::Setting` more like `skrifa::setting::Setting`.

It is only `Eq` when the underlying type is `Eq`, so not for
`Setting<f32>`.

It doesn't need to always state that it is `Copy`, so only state
that when needed.

The impl of `PartialEq` can be derived.
@waywardmonkeys
Copy link
Collaborator Author

FWIW, this is related to linebender/parley#206

@waywardmonkeys waywardmonkeys requested a review from dfrg December 7, 2024 13:41
Copy link
Owner

@dfrg dfrg left a comment

Choose a reason for hiding this comment

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

This seems reasonable to me, thanks!

@waywardmonkeys waywardmonkeys merged commit 2195296 into dfrg:main Dec 7, 2024
10 checks passed
@waywardmonkeys waywardmonkeys deleted the tidy-up-type-bounds-on-setting branch December 7, 2024 15:15
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.

3 participants