libimagentryview: use generate_error_module!() macro and reexport generated types
This commit is contained in:
parent
b624ba9c06
commit
21dfa9fba2
1 changed files with 7 additions and 4 deletions
|
@ -1,6 +1,9 @@
|
||||||
generate_error_imports!();
|
generate_error_module!(
|
||||||
|
generate_error_types!(ViewError, ViewErrorKind,
|
||||||
generate_error_types!(ViewError, ViewErrorKind,
|
Unknown => "Unknown view error"
|
||||||
Unknown => "Unknown view error"
|
);
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pub use self::error::ViewError;
|
||||||
|
pub use self::error::ViewErrorKind;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue