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

Replace derive_more derives with manual implementations #123

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

svix-jplatte
Copy link
Contributor

@svix-jplatte svix-jplatte commented Mar 6, 2024

Do you want me to try macro_rules! "derives" as an alternative? I think due to all the types here being generic, that would probably only save a few lines and the macro code would be a tad hard to read, so I'd personally prefer this for readability. It's not that much boilerplate IMHO.

Resolves #122.

@Wicpar
Copy link
Collaborator

Wicpar commented Mar 6, 2024

yes wrapping the impls into a macro_rules that takes the identifier of the struct could avoid code duplication. however for two implementations the advantage is negligible. Can you also get the latest updates ?
Can you try to sync up with master ? I unfortunately had to force push some commit message changes while you were contributing and it looks like you have an extra commit in your PR

@Wicpar Wicpar merged commit 353313a into tamasfe:master Mar 7, 2024
1 check passed
@svix-jplatte svix-jplatte deleted the rm-derive_more branch March 7, 2024 10:53
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.

Consider removing derive_more dependency
2 participants