diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-05-19 17:11:18 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-05-19 18:22:03 +0200 |
commit | d3dc4eb57d77a7d77131986466a6c13014042f41 (patch) | |
tree | deeca3e074f068f434ad41a54203b29ce8b61f42 /libimagcounter | |
parent | 537fe88e13f0356bcf54f1f2109ca812097914a0 (diff) |
libimagcounter: use generate_error_module!() macro and reexport generated types
Diffstat (limited to 'libimagcounter')
-rw-r--r-- | libimagcounter/src/error.rs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/libimagcounter/src/error.rs b/libimagcounter/src/error.rs index d3858d33..e8016fb6 100644 --- a/libimagcounter/src/error.rs +++ b/libimagcounter/src/error.rs @@ -1,9 +1,12 @@ -generate_error_imports!(); - -generate_error_types!(CounterError, CounterErrorKind, - StoreReadError => "Store read error", - StoreWriteError => "Store write error", - HeaderTypeError => "Header type error", - HeaderFieldMissingError => "Header field missing error" +generate_error_module!( + generate_error_types!(CounterError, CounterErrorKind, + StoreReadError => "Store read error", + StoreWriteError => "Store write error", + HeaderTypeError => "Header type error", + HeaderFieldMissingError => "Header field missing error" + ); ); +pub use self::error::CounterError; +pub use self::error::CounterErrorKind; + |