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

aya/maps: rework TryFrom macros #777

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

ajwerner
Copy link
Member

@ajwerner ajwerner commented Sep 1, 2023

The old macros were repetitive and inflexible. This unifies the various
macros used to generate TryFrom implementations for map implementations
from the relevant map enum variants.

Cleanup in anticipation of fixing #636.

The API changes are just about renaming the return to Self and
Self::Error; they are not real changes.

@netlify
Copy link

netlify bot commented Sep 1, 2023

Deploy Preview for aya-rs-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 2a1bf60
🔍 Latest deploy log https://app.netlify.com/sites/aya-rs-docs/deploys/64f1fa1e4fc14c0008acf23d
😎 Deploy Preview https://deploy-preview-777--aya-rs-docs.netlify.app/src/aya/maps/mod.rs
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mergify mergify bot added the aya This is about aya (userspace) label Sep 1, 2023
@ajwerner ajwerner requested a review from tamird September 1, 2023 02:30
aya/src/maps/mod.rs Outdated Show resolved Hide resolved
@ajwerner ajwerner force-pushed the ajwerner/TryFrom-macros branch 2 times, most recently from 081976f to ae942e0 Compare September 1, 2023 14:23
@mergify
Copy link

mergify bot commented Sep 1, 2023

Hey @alessandrod, this pull request changes the Aya Public API and requires your review.

@mergify mergify bot requested a review from alessandrod September 1, 2023 14:23
@mergify mergify bot added api/needs-review Makes an API change that needs review test A PR that improves test cases or CI labels Sep 1, 2023
The old macros were repetitive and inflexible. This unifies the various
macros used to generate TryFrom implementations for map implementations
from the relevant map enum variants.

Cleanup in anticipation of fixing aya-rs#636.

The API changes are just about renaming the return to Self and
Self::Error; they are not real changes.
@ajwerner ajwerner merged commit 792f467 into aya-rs:main Sep 1, 2023
20 checks passed
@ajwerner ajwerner deleted the ajwerner/TryFrom-macros branch September 1, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api/needs-review Makes an API change that needs review aya This is about aya (userspace) test A PR that improves test cases or CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants