From d4fe124574afe22f9bfe02497be7206e94ce5888 Mon Sep 17 00:00:00 2001 From: "G. Endignoux" Date: Mon, 6 May 2024 22:27:12 +0200 Subject: [PATCH] Mark stream-only fields as such. --- src/decode/lzbuffer.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/decode/lzbuffer.rs b/src/decode/lzbuffer.rs index 9499d96..f12d60c 100644 --- a/src/decode/lzbuffer.rs +++ b/src/decode/lzbuffer.rs @@ -20,15 +20,18 @@ where fn append_lz(&mut self, len: usize, dist: usize) -> error::Result<()>; /// Get a reference to the output sink. + #[cfg(feature = "stream")] fn get_output(&self) -> &W; /// Get a mutable reference to the output sink. + #[cfg(feature = "stream")] fn get_output_mut(&mut self) -> &mut W; /// Consumes this buffer and flushes any data. fn finish(self) -> io::Result; /// Consumes this buffer without flushing any data. + #[cfg(feature = "stream")] fn into_output(self) -> W; }