Added Error trait to errors
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
## 0.2.1 (unreleased)
|
||||
|
||||
- Added `Error` trait to errors
|
||||
|
||||
## 0.2.0 (2021-10-17)
|
||||
|
||||
- Added support for Windows
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user