aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/error.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 6aeeef8..dcaa4d2 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -1,4 +1,5 @@
use std::borrow;
+use std::error;
use std::fmt;
use std::os::raw;
@@ -79,6 +80,8 @@ impl CommandError {
}
}
+impl error::Error for CommandError {}
+
impl fmt::Display for CommandError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.as_str())