diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-05-27 10:15:29 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-05-27 10:15:29 +0200 |
commit | 3d9d5795e4948c427dd9936521b0f6c3ca676837 (patch) | |
tree | 1bbeab55385e4618feac9daadc237ca40480b767 /libimagstore | |
parent | cb87b4b5d8893c3ce856ddabb885e4eb30c6e777 (diff) |
Rewrite hook error module with error macros
Diffstat (limited to 'libimagstore')
-rw-r--r-- | libimagstore/src/hook/error.rs | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libimagstore/src/hook/error.rs b/libimagstore/src/hook/error.rs index 451fb5a5..afe9ef07 100644 --- a/libimagstore/src/hook/error.rs +++ b/libimagstore/src/hook/error.rs @@ -1,8 +1,10 @@ -generate_error_imports!(); -use std::convert::Into; - -generate_error_types!(HookError, HookErrorKind, - HookExecutionError => "Hook exec error", - AccessTypeViolation => "Hook access type violation" +generate_error_module!( + generate_error_types!(HookError, HookErrorKind, + HookExecutionError => "Hook exec error", + AccessTypeViolation => "Hook access type violation" + ); ); +pub use self::error::HookError; +pub use self::error::HookErrorKind; + |