diff options
-rw-r--r-- | openpgp/src/constants.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openpgp/src/constants.rs b/openpgp/src/constants.rs index 670b48fa..e4c8be18 100644 --- a/openpgp/src/constants.rs +++ b/openpgp/src/constants.rs @@ -995,6 +995,12 @@ pub enum DataFormat { Unknown(char), } +impl Default for DataFormat { + fn default() -> Self { + DataFormat::Binary + } +} + impl From<u8> for DataFormat { fn from(u: u8) -> Self { (u as char).into() |