From b624ba9c06cb8fbbfe601576e1a99afa8f866b6b Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 19 May 2016 17:11:18 +0200 Subject: [PATCH] libimagentrytag: use generate_error_module!() macro and reexport generated types --- libimagentrytag/src/error.rs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/libimagentrytag/src/error.rs b/libimagentrytag/src/error.rs index 0e8aa3e7..45895019 100644 --- a/libimagentrytag/src/error.rs +++ b/libimagentrytag/src/error.rs @@ -1,9 +1,12 @@ -generate_error_imports!(); - -generate_error_types!(TagError, TagErrorKind, - TagTypeError => "Entry Header Tag Type wrong", - HeaderReadError => "Error while reading entry header", - HeaderWriteError => "Error while writing entry header", - NotATag => "String is not a tag" +generate_error_module!( + generate_error_types!(TagError, TagErrorKind, + TagTypeError => "Entry Header Tag Type wrong", + HeaderReadError => "Error while reading entry header", + HeaderWriteError => "Error while writing entry header", + NotATag => "String is not a tag" + ); ); +pub use self::error::TagError; +pub use self::error::TagErrorKind; +