summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2024-01-25 11:48:35 +0100
committerJustus Winter <justus@sequoia-pgp.org>2024-01-25 11:48:35 +0100
commit5e311253a6e001ba99c978775ba33e22fcfb5548 (patch)
tree3be30c56ba07b16719902b9db2bf034280086959
parent7c69fe2ec91f4dba1c5dc49d9fd450282a73fcc6 (diff)
openpgp: Improve deprecation note.
-rw-r--r--openpgp/src/cert.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/openpgp/src/cert.rs b/openpgp/src/cert.rs
index 9ee04ba7..b35fd7eb 100644
--- a/openpgp/src/cert.rs
+++ b/openpgp/src/cert.rs
@@ -1394,7 +1394,9 @@ impl Cert {
/// ```
#[deprecated(
since = "1.18.0",
- note = "Use Cert::into_packets2 or cert.into_tsk().into_packets()")]
+ note = "Use Cert::into_packets2() to strip secret key material \
+ or cert.into_tsk().into_packets() to serialize any \
+ secret key material")]
pub fn into_packets(self) -> impl Iterator<Item=Packet> + Send + Sync {
fn rewrite(mut p: impl Iterator<Item=Packet> + Send + Sync)
-> impl Iterator<Item=Packet> + Send + Sync