-
Notifications
You must be signed in to change notification settings - Fork 249
Description
embedded-hal defines its own Error traits for each submodule, which makes sense since it wants the kind method.
I think this trait should've been a subtrait of core::error::Error, though I get why it isn't - Display isn't as useful, and the standard library's error trait is not yet stable in core - so I won't belabour this point further, it's more important to ship a v1.0 than to wait for that stabilization.
However, both embedded_hal::digital::ErrorKind and embedded_hal::pwm::ErrorKind only contain one variant Other, which means it is currently completely useless. So I'd suggest to remove these for now, until the need arises.
This would be unlikely to be SemVer breaking to change back in the future (you could re-add the method with a default implementation of ErrorKind::Other), if we do find that we want to re-add error kinds for the digital and pwm modules.