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

Add From impl for pins #364

Merged
merged 1 commit into from
Dec 9, 2021
Merged

Add From impl for pins #364

merged 1 commit into from
Dec 9, 2021

Conversation

ZoeyR
Copy link
Contributor

@ZoeyR ZoeyR commented Dec 9, 2021

I ran into this when needing to take a generic struct that could contain any gpio pin. Since all the gpio pins have a degrade function I see no reason to not implement From. This allows generic code to work better.

@ZoeyR
Copy link
Contributor Author

ZoeyR commented Dec 9, 2021

I think the build error is unrelated to my change since that's a dependency resolution issue and my code just adds a From impl.

bors bot added a commit that referenced this pull request Dec 9, 2021
365: Update defmt crates r=jonas-schievink a=jonas-schievink

Apparently the old version is now causing dependency resolution problems in #364

bors r+

Co-authored-by: Jonas Schievink <jonas.schievink@ferrous-systems.com>
@jonas-schievink
Copy link
Contributor

Thanks! The CI issue should have been fixed by #365.

bors r+

@ZoeyR
Copy link
Contributor Author

ZoeyR commented Dec 9, 2021

Awesome! Would you be able to cut a release after this? I can always pin to git but I've been trying to cut down on the amount of git dependencies in my Cargo.toml files.

@bors
Copy link
Contributor

bors bot commented Dec 9, 2021

Build succeeded:

@bors bors bot merged commit 169443f into nrf-rs:master Dec 9, 2021
@jonas-schievink
Copy link
Contributor

Sadly releases are pretty involved, so I'd like to get some more changes in before I publish one

@ZoeyR
Copy link
Contributor Author

ZoeyR commented Dec 9, 2021

Understandable! I can pin to git for now. Thanks for merging so fast!

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.

2 participants