rusb icon indicating copy to clipboard operation
rusb copied to clipboard

Add additional automatic derives for SyncType and UsageType

Open raphaelcohn opened this issue 4 years ago • 2 comments

These types lack some ordering derives. Whilst it might seem odd to some, having a comparison implementation on these types means they can have a consist sort order when being displayed. It might also be nice to implement the Display trait, perhaps using strum.

raphaelcohn avatar Jul 26 '21 06:07 raphaelcohn

I can add ordering derive but I don't like add more dependency. I want keep crate minimal as possible. If implement Display its can be easily done by manual implementation.

a1ien avatar Jul 26 '21 09:07 a1ien

Ok, I can understand not adding a dependency on strum.

raphaelcohn avatar Jul 26 '21 16:07 raphaelcohn