summaryrefslogtreecommitdiffstats
path: root/openpgp/src/types/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/types/mod.rs')
-rw-r--r--openpgp/src/types/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/openpgp/src/types/mod.rs b/openpgp/src/types/mod.rs
index f3c80a4d..7e7c3032 100644
--- a/openpgp/src/types/mod.rs
+++ b/openpgp/src/types/mod.rs
@@ -1600,6 +1600,7 @@ pub enum DataFormat {
/// This is defined in [Section 5.10 of RFC4880bis].
///
/// [Section 5.10 of RFC4880bis]: https://tools.ietf.org/html/draft-ietf-openpgp-rfc4880bis-05#section-5.10
+ #[deprecated(since = "1.10.0", note = "Do not use as semantics are unclear")]
MIME,
/// Unknown format specifier.
@@ -1626,6 +1627,7 @@ impl From<char> for DataFormat {
'b' => Binary,
't' => Text,
'u' => Unicode,
+ #[allow(deprecated)]
'm' => MIME,
c => Unknown(c),
}
@@ -1645,6 +1647,7 @@ impl From<DataFormat> for char {
Binary => 'b',
Text => 't',
Unicode => 'u',
+ #[allow(deprecated)]
MIME => 'm',
Unknown(c) => c,
}
@@ -1661,6 +1664,7 @@ impl fmt::Display for DataFormat {
f.write_str("Text data"),
Unicode =>
f.write_str("Text data (UTF-8)"),
+ #[allow(deprecated)]
MIME =>
f.write_str("MIME message body part"),
Unknown(c) =>