From 698c219e04677654be45849fe0a73429860d7e51 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 19 May 2016 17:11:18 +0200 Subject: [PATCH] libimagentrylist: use generate_error_module!() macro and reexport generated types --- libimagentrylist/src/error.rs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/libimagentrylist/src/error.rs b/libimagentrylist/src/error.rs index d9843280..2cd5cde5 100644 --- a/libimagentrylist/src/error.rs +++ b/libimagentrylist/src/error.rs @@ -1,9 +1,12 @@ -generate_error_imports!(); - -generate_error_types!(ListError, ListErrorKind, - FormatError => "FormatError", - EntryError => "EntryError", - IterationError => "IterationError", - CLIError => "No CLI subcommand for listing entries" +generate_error_module!( + generate_error_types!(ListError, ListErrorKind, + FormatError => "FormatError", + EntryError => "EntryError", + IterationError => "IterationError", + CLIError => "No CLI subcommand for listing entries" + ); ); +pub use self::error::ListError; +pub use self::error::ListErrorKind; +