From 5c5d84a57b97e1ac1cf618adf667b22dee932e55 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Tue, 16 Apr 2019 18:32:29 -0400 Subject: [PATCH] Final cleanup? Need to spec out the process and zlib methods, but otherwise looks decent --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 193098f..b89cbbb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,7 +12,7 @@ impl<'a> From for KaitaiError<'a> { } } -type Result<'a, T> = std::result::Result>; +pub type Result<'a, T> = std::result::Result>; pub trait KaitaiStruct<'a> { @@ -25,7 +25,7 @@ pub trait KaitaiStruct<'a> where Self: Sized; - //fn read(&mut self, stream: &S); + fn read(&mut self, stream: &mut S) -> Result<'a, ()>; } pub trait KaitaiStream {