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

chore: do not implement SolType for SolStruct generically #275

Merged
merged 2 commits into from
Sep 23, 2023

Conversation

DaniPopes
Copy link
Member

Motivation

Closes #36

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@gakonst gakonst left a comment

Choose a reason for hiding this comment

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

not following what's made easier here, is it applying less restrictions on the type?

@DaniPopes
Copy link
Member Author

@gakonst Removing the generic impl makes the compiler give cleaner error messages, fixes some type ambiguity errors I got while trying to add methods to the Encodable trait

@DaniPopes DaniPopes enabled auto-merge (squash) September 21, 2023 19:20
@DaniPopes DaniPopes merged commit 315a22b into main Sep 23, 2023
18 checks passed
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.

Move blanket SolType for SolStruct impl to sol! macro
3 participants