Hi, this is a very basic implementation, it just reuses the Debug print of ProtocolError as the Display print, I don't know if xcb has some mechanism to turn the error codes into human readable messages but considering that Display doesn't have any stability guarantees and the ergonomic improvements of working with errors implementing std::error::Error I think this is better than nothing.
Hi, this is a very basic implementation, it just reuses the Debug print of ProtocolError as the Display print, I don't know if xcb has some mechanism to turn the error codes into human readable messages but considering that Display doesn't have any stability guarantees and the ergonomic improvements of working with errors implementing std::error::Error I think this is better than nothing.