diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-17 01:58:42 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-01-20 20:57:07 +0000 |
commit | 591c55ff294ee12812e4be1b90f03a093f83a4f5 (patch) | |
tree | 3dd154e902c931ea56bc72667412676e023b7a9d /src | |
parent | d0f63513bb935d3d931c86a1ab7b68d6ed44bf27 (diff) | |
download | nitrokey-rs-591c55ff294ee12812e4be1b90f03a093f83a4f5.tar.gz nitrokey-rs-591c55ff294ee12812e4be1b90f03a093f83a4f5.tar.bz2 |
Implement std::error::Error for error::CommandError
Diffstat (limited to 'src')
-rw-r--r-- | src/error.rs | 3 |
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()) |