-
Notifications
You must be signed in to change notification settings - Fork 223
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
digital: enforce all traits have the same Error type. #338
Conversation
r? @therealprof (rust-highfive has picked a reviewer for you, use r? to override) |
|
Thanks for the link @burrbull . It seems the bounds are OK, the obvious changes worked with no fuss! Dirbaio/stm32f4xx-hal@091d945 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems correct to me, thanks!
Breaking up the unified error type requirement for IoPin
in the future would be a non-breaking change, right?
Iff so, this is fine as-is I would say.
I have no idea to be honest. Removing the |
Hmm, I see. enum IoPinError {
Input(...),
Output(...),
FailedToChangeMode
} Given this, I would tend not to unify the error type for |
7f18e18
to
32a3ed4
Compare
Changed to leave Anyway IMO IoPin requires a redesign.
but that's a different story I guess... |
32a3ed4
to
17b5b70
Compare
I screwed up the rebase somehow, it's OK now |
Friendly ping @eldruin @therealprof @ryankurte are there any pending concerns on this now that IoPin is left untouched? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
bors r+
Equivalent of #331 for GPIO traits.
This one is a bit trickier, so it maybe warrants some discussion (this is the reason I've opened everything as separate PR's, sorry for the spam!):
IoPin
are becoming very cursed, but I think they're correct... Is there some HAL out there implementing it, so that I can verify this doesn't break it?