diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-05-05 11:43:26 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-05-05 11:43:26 +0200 |
commit | b67cf1c60b76b6d9b54b10a021c10e4c4e55b498 (patch) | |
tree | e7bb42a8c7f8d7a5fb65abdf4e07577fbbb19113 /openpgp/src/message/mod.rs | |
parent | 6e182cad61c49dae93ce067cf360555ee4e00520 (diff) |
openpgp: Don't export internal data structures.
- Don't export CertValidity, KeyringValidator, KeyringValidity, or
MessageValidity.
- Fixes #490.
Diffstat (limited to 'openpgp/src/message/mod.rs')
-rw-r--r-- | openpgp/src/message/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/message/mod.rs b/openpgp/src/message/mod.rs index cc3b6508..1fd5ecb2 100644 --- a/openpgp/src/message/mod.rs +++ b/openpgp/src/message/mod.rs @@ -73,7 +73,7 @@ impl From<MessageParserError> for anyhow::Error { /// Represents the status of a parsed message. #[derive(Debug)] -pub enum MessageValidity { +pub(crate) enum MessageValidity { /// The packet sequence is a valid OpenPGP message. Message, /// The packet sequence appears to be a valid OpenPGP message that @@ -84,6 +84,7 @@ pub enum MessageValidity { Error(anyhow::Error), } +#[allow(unused)] impl MessageValidity { /// Returns whether the packet sequence is a valid message. /// |