diff options
author | Daniel Schadt <kingdread@gmx.de> | 2018-06-14 16:21:16 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2018-06-14 16:21:16 +0200 |
commit | f5dcdfff1b52a819adb4354960213d7472978c7f (patch) | |
tree | 4a77cfe073c3b7cd3893cc33e586473a8c171bb9 /src/raw/parser.rs | |
parent | 12c1426dc10cc30c58e2c8970d73ca8a98e087fa (diff) | |
download | evtclib-f5dcdfff1b52a819adb4354960213d7472978c7f.tar.gz evtclib-f5dcdfff1b52a819adb4354960213d7472978c7f.tar.bz2 evtclib-f5dcdfff1b52a819adb4354960213d7472978c7f.zip |
add support for reading zipped logs
Diffstat (limited to 'src/raw/parser.rs')
-rw-r--r-- | src/raw/parser.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/raw/parser.rs b/src/raw/parser.rs index 8e931a2..97c0bc7 100644 --- a/src/raw/parser.rs +++ b/src/raw/parser.rs @@ -117,11 +117,17 @@ quick_error! { MalformedHeader { description("malformed header") } + InvalidZip(err: ::zip::result::ZipError) { + from() + description("zip error") + display("Archive error: {}", err) + cause(err) + } } } /// A type indicating the parse result. -type ParseResult<T> = Result<T, ParseError>; +pub type ParseResult<T> = Result<T, ParseError>; /// Parse the header of an evtc file. /// |