mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 19:31:30 +11:00
Implemented std::error::Error for minifb::Error (#168)
* Implemented std::error::Error for minifb::Error * Fix rustfmt
This commit is contained in:
parent
d2fe8c0469
commit
f769fe60ca
|
@ -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 {}
|
||||
|
|
Loading…
Reference in a new issue