ryankurte / rust-streamdeck

libusb based driver for Elgato StreamDeck devices
Mozilla Public License 2.0
57 stars 24 forks source link

Implement Display and Error traits for Error #15

Closed MrGunflame closed 2 years ago

MrGunflame commented 2 years ago

Implements the Error and Display traits for the Error type. This allows wrapping the Error using Box<dyn std::error::Error>.

ryankurte commented 2 years ago

hey thanks for the PR! you might be interested in thiserror for representing these (and i'd be happy to accept another if you fancied the switch) but, solid improvement as is ^_^

MrGunflame commented 2 years ago

I can do that, was just looking for a depdendency free quick fix for my own streamdeck. I'll open a new PR in the future if I don't forget ^^