diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2022-03-28 13:49:00 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2022-03-28 13:49:00 +0200 |
commit | f66d98e0fac7320af3e918bbb69f09b130df3d63 (patch) | |
tree | 9390d1ff70f13bafcdfeec7e2646085c138ebe85 /openpgp/src/parse.rs | |
parent | 407141a8e798d5799b16b2d5310a06c0aae38244 (diff) |
openpgp: Clarify that message::Token is not covered by SemVer.
- Do this using a deprecation so that anyone using it will get a
compiler warning.
- Revert this change once message::Token is private.
- See #836.
Diffstat (limited to 'openpgp/src/parse.rs')
-rw-r--r-- | openpgp/src/parse.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp/src/parse.rs b/openpgp/src/parse.rs index 72241d73..81549c50 100644 --- a/openpgp/src/parse.rs +++ b/openpgp/src/parse.rs @@ -4878,6 +4878,7 @@ impl <'a> PacketParser<'a> { // this as opaque content to the message validator. let mut path = self.path().to_vec(); path.push(0); + #[allow(deprecated)] self.state.message_validator.push_token( message::Token::OpaqueContent, &path); } |