From 548db12b07026d33a9cb12192ceb6c1299ab344a Mon Sep 17 00:00:00 2001 From: Marli Frost Date: Wed, 17 Jun 2020 17:36:34 +0100 Subject: [PATCH] docs: deprecate unnecessary API --- src/compression.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/compression.rs b/src/compression.rs index 86358b3e..bb57d690 100644 --- a/src/compression.rs +++ b/src/compression.rs @@ -14,11 +14,19 @@ pub enum CompressionMethod { #[cfg(feature = "bzip2")] Bzip2, /// Unsupported compression method + #[deprecated( + since = "0.5.7", + note = "implementation details are being removed from the public API" + )] Unsupported(u16), } impl CompressionMethod { /// Converts an u16 to its corresponding CompressionMethod + #[deprecated( + since = "0.5.7", + note = "implementation details are being removed from the public API" + )] pub fn from_u16(val: u16) -> CompressionMethod { match val { 0 => CompressionMethod::Stored, @@ -31,6 +39,10 @@ impl CompressionMethod { } /// Converts a CompressionMethod to a u16 + #[deprecated( + since = "0.5.7", + note = "implementation details are being removed from the public API" + )] pub fn to_u16(self) -> u16 { match self { CompressionMethod::Stored => 0,