diff options
author | Azul <azul@riseup.net> | 2020-10-09 20:05:33 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-10-26 17:47:09 +0100 |
commit | d662a80e8f7c96b72708e4124546f72d2712ed40 (patch) | |
tree | beb51cb910bdb1448e4a3edfe4059dca78eb7e8e /openpgp/src/lib.rs | |
parent | 3fc8654d33c8c57542250eda8e910a2ffa0b8a81 (diff) |
openpgp: seal the Preferences trait
[Seal] the `cert::Preferences` trait
so it cannot be implemented for types outside this crate.
Therefore it can be extended in a non-breaking way.
Attempts to implement the trait will not compile.
refers: #538
[seal]: https://rust-lang.github.io/api-guidelines/future-proofing.html#sealed-traits-protect-against-downstream-implementations-c-sealed
Diffstat (limited to 'openpgp/src/lib.rs')
-rw-r--r-- | openpgp/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp/src/lib.rs b/openpgp/src/lib.rs index cce9ad6e..d71bb483 100644 --- a/openpgp/src/lib.rs +++ b/openpgp/src/lib.rs @@ -152,6 +152,7 @@ mod keyhandle; pub use keyhandle::KeyHandle; pub mod policy; +pub(crate) mod seal; pub(crate) mod utils; #[cfg(test)] |