Remove all trait bounds from motion_control::Error, simplifying the enum significantly. This comes at the cost of more type parameters, but I believe the reduced complexity is worth it. It is already bearing fruit in this pull request, allowing for the replacement of the custom Debug implementation with a much simpler (and less error-prone) #[derive(Debug)]. It's also going to make some conversions I'd like to implement between error types much more practical.
Remove all trait bounds from
motion_control::Error
, simplifying the enum significantly. This comes at the cost of more type parameters, but I believe the reduced complexity is worth it. It is already bearing fruit in this pull request, allowing for the replacement of the customDebug
implementation with a much simpler (and less error-prone)#[derive(Debug)]
. It's also going to make some conversions I'd like to implement between error types much more practical.