diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-05-19 17:11:18 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-05-19 20:32:23 +0200 |
commit | bfa1fc5c875570c8f251dcb6cf02e3c8fbe1cfbd (patch) | |
tree | f56dae9f6c4cbddc98ba82f0eddc70c2b0901fa2 /libimagnotes | |
parent | d2fa853a08181e540b0abae3da250334cc59b598 (diff) |
libimagnotes: use generate_error_module!() macro and reexport generated types
Diffstat (limited to 'libimagnotes')
-rw-r--r-- | libimagnotes/src/error.rs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/libimagnotes/src/error.rs b/libimagnotes/src/error.rs index d5659622..bbb02d0c 100644 --- a/libimagnotes/src/error.rs +++ b/libimagnotes/src/error.rs @@ -1,9 +1,12 @@ -generate_error_imports!(); - -generate_error_types!(NoteError, NoteErrorKind, - StoreWriteError => "Error writing store", - StoreReadError => "Error reading store", - HeaderTypeError => "Header type error", - NoteToEntryConversion => "Error converting Note instance to Entry instance" +generate_error_module!( + generate_error_types!(NoteError, NoteErrorKind, + StoreWriteError => "Error writing store", + StoreReadError => "Error reading store", + HeaderTypeError => "Header type error", + NoteToEntryConversion => "Error converting Note instance to Entry instance" + ); ); +pub use self::error::NoteError; +pub use self::error::NoteErrorKind; + |