From 5e311253a6e001ba99c978775ba33e22fcfb5548 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Thu, 25 Jan 2024 11:48:35 +0100 Subject: openpgp: Improve deprecation note. --- openpgp/src/cert.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 + Send + Sync { fn rewrite(mut p: impl Iterator + Send + Sync) -> impl Iterator + Send + Sync -- cgit v1.2.3