Implemented std::error::Error for minifb::Error (#168)

* Implemented std::error::Error for minifb::Error

* Fix rustfmt
This commit is contained in:
Christofer Nolander 2020-04-20 07:11:10 +02:00 committed by GitHub
parent d2fe8c0469
commit f769fe60ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,4 @@
use std::error::Error as StdError;
use std::fmt;
/// Errors that can be returned from various operations
@ -34,3 +35,5 @@ impl fmt::Display for Error {
}
}
}
impl StdError for Error {}