Initialize Decoder in new instead of init
This commit is contained in:
1 parent
77f15b5c0a
commit
e9aa39d895
2 files changed
+62
-60
No files matched your search
@@ -339,6 +339,9 @@ where
|
||||
pub fn wrap(reader: R, byte_order: ByteOrder) -> SmartReader<R> {
|
||||
SmartReader { reader, byte_order }
|
||||
}
|
||||
pub fn into_inner(self) -> R {
|
||||
self.reader
|
||||
}
|
||||
}
|
||||
|
||||
impl<R> EndianReader for SmartReader<R>
|
||||
|
||||
Reference in new issue
Block a user