From 6bc5099accf8a1404d74700ba128512f0d217516 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 19 May 2016 17:11:18 +0200 Subject: [PATCH] imag-store: use generate_error_module!() macro and reexport generated types --- imag-store/src/error.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/imag-store/src/error.rs b/imag-store/src/error.rs index f68d5dc0..ae9162f0 100644 --- a/imag-store/src/error.rs +++ b/imag-store/src/error.rs @@ -1,7 +1,10 @@ -generate_error_imports!(); - -generate_error_types!(StoreError, StoreErrorKind, - BackendError => "Backend Error", - NoCommandlineCall => "No commandline call" +generate_error_module!( + generate_error_types!(StoreError, StoreErrorKind, + BackendError => "Backend Error", + NoCommandlineCall => "No commandline call" + ); ); +pub use self::error::StoreError; +pub use self::error::StoreErrorKind; +