diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2024-01-25 11:48:35 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2024-01-25 11:48:35 +0100 |
commit | 5e311253a6e001ba99c978775ba33e22fcfb5548 (patch) | |
tree | 3be30c56ba07b16719902b9db2bf034280086959 | |
parent | 7c69fe2ec91f4dba1c5dc49d9fd450282a73fcc6 (diff) |
openpgp: Improve deprecation note.
-rw-r--r-- | openpgp/src/cert.rs | 4 |
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 |