emoon / rust_minifb

Cross platfrom window and framebuffer crate for Rust
MIT License
1.04k stars 99 forks source link

Make Debug for Error include the sub-error. #232

Closed CoffmanLevi closed 3 years ago

CoffmanLevi commented 3 years ago

The old implementation of Debug for Error would only print what type of error it was. Not what caused the error. Whereas, Display would print the type of error and what caused the error. This seemed backwards to what it should be, so I flipped them.

emoon commented 3 years ago

Thanks!