From a099322c94d0583633a6f60453f442f2730abb2b Mon Sep 17 00:00:00 2001 From: James Smith Date: Wed, 31 Aug 2022 10:59:46 +1000 Subject: [PATCH 1/3] compress: correct spelling error in into_inner docstring --- src/frame/compress.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frame/compress.rs b/src/frame/compress.rs index e38145fe..7da0fe91 100644 --- a/src/frame/compress.rs +++ b/src/frame/compress.rs @@ -151,7 +151,7 @@ impl FrameEncoder { } /// Returns the underlying writer _without_ flushing the stream. - /// This may lave the output in an unfinished state. + /// This may leave the output in an unfinished state. pub fn into_inner(self) -> W { self.w } From c1b03cc8c7d0a0ad773969e642001f043286871e Mon Sep 17 00:00:00 2001 From: James Smith Date: Wed, 31 Aug 2022 11:00:08 +1000 Subject: [PATCH 2/3] decompress: add into_inner() method on FrameDecoder --- src/frame/decompress.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/frame/decompress.rs b/src/frame/decompress.rs index 2088f195..b09bad47 100644 --- a/src/frame/decompress.rs +++ b/src/frame/decompress.rs @@ -102,6 +102,11 @@ impl FrameDecoder { &mut self.r } + /// Consumes the FrameDecoder and returns the underlying reader. + pub fn into_inner(self) -> R { + self.r + } + fn read_frame_info(&mut self) -> Result { let mut buffer = [0u8; MAX_FRAME_INFO_SIZE]; match self.r.read(&mut buffer[..MIN_FRAME_INFO_SIZE])? { From 7b77b4f664d2096025702dfb2078c49fc08a1373 Mon Sep 17 00:00:00 2001 From: James Smith Date: Wed, 31 Aug 2022 11:01:15 +1000 Subject: [PATCH 3/3] Cargo.toml: bump version --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index c043d4a9..ca001556 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ homepage = "https://github.com/pseitz/lz4_flex" repository = "https://github.com/pseitz/lz4_flex" readme = "README.md" license = "MIT" -version = "0.9.4" +version = "0.9.5" include = ["src/*.rs", "src/frame/**/*", "src/block/**/*", "README.md"] [[bench]]