libimagcounter: use generate_error_module!() macro and reexport generated types

This commit is contained in:
Matthias Beyer 2016-05-19 17:11:18 +02:00
parent 537fe88e13
commit d3dc4eb57d

View file

@ -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;