kayleg / cloud-pubsub

Google Cloud PubSub client in rust
MIT License
31 stars 21 forks source link

`Error` type is not usable as as a standard error type #3

Closed bruceg closed 5 years ago

bruceg commented 5 years ago

To be usable as a standard error type, this type needs to implement std::error::Error, which implies both std::fmt::Debug and std::fmt::Display. Error can be trivially implemented, and Debug can be auto-derived, so this means providing a Display method.

bruceg commented 5 years ago

and I see now that Display is already implemented, so this just means providing the trivial bits.