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 |
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? |
therealprof
left a comment
There was a problem hiding this comment.
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!):
IoPinare 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?