From 537fe88e13f0356bcf54f1f2109ca812097914a0 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 19 May 2016 17:11:18 +0200 Subject: [PATCH] imag-view: use generate_error_module!() macro and reexport generated types --- imag-view/src/error.rs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/imag-view/src/error.rs b/imag-view/src/error.rs index 077bb9f4..77c7b95d 100644 --- a/imag-view/src/error.rs +++ b/imag-view/src/error.rs @@ -1,9 +1,12 @@ -generate_error_imports!(); - -generate_error_types!(ViewError, ViewErrorKind, - StoreError => "Store error", - NoVersion => "No version specified", - PatternError => "Error in Pattern", - GlobBuildError => "Could not build glob() Argument" +generate_error_module!( + generate_error_types!(ViewError, ViewErrorKind, + StoreError => "Store error", + NoVersion => "No version specified", + PatternError => "Error in Pattern", + GlobBuildError => "Could not build glob() Argument" + ); ); +pub use self::error::ViewError; +pub use self::error::ViewErrorKind; +