summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/cert.rs')
-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