Added Error trait to errors

This commit is contained in:
Andrew Kane
2021-11-13 17:59:22 -08:00
parent 59d5297ce2
commit c155fbc2e7
2 changed files with 7 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
## 0.2.1 (unreleased)
- Added `Error` trait to errors
## 0.2.0 (2021-10-17)
- Added support for Windows

View File

@@ -1,3 +1,4 @@
use std::error;
use std::ffi::NulError;
use std::fmt;
@@ -8,6 +9,8 @@ pub enum Error {
Unknown
}
impl error::Error for Error {}
impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match *self {